Skip to content

Commit 684f167

Browse files
author
Oren (electricessence)
committed
Updated for new eslint.
1 parent bb752d1 commit 684f167

File tree

14 files changed

+3147
-27
lines changed

14 files changed

+3147
-27
lines changed

.eslintrc.json

+9-7
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
"@typescript-eslint"
2121
],
2222
"rules": {
23-
"@typescript-eslint/ban-ts-ignore": "off",
24-
"@typescript-eslint/no-inferrable-types": "off",
25-
"@typescript-eslint/no-explicit-any": "off",
26-
"@typescript-eslint/no-namespace": "off",
27-
"@typescript-eslint/no-non-null-assertion": "off",
28-
"@typescript-eslint/no-use-before-define": "off",
29-
"no-inner-declarations": "off"
23+
"@typescript-eslint/ban-ts-ignore": "off",
24+
"@typescript-eslint/ban-types": "off",
25+
"@typescript-eslint/no-inferrable-types": "off",
26+
"@typescript-eslint/no-explicit-any": "off",
27+
"@typescript-eslint/no-namespace": "off",
28+
"@typescript-eslint/no-non-null-assertion": "off",
29+
"@typescript-eslint/no-this-alias": "off",
30+
"@typescript-eslint/no-use-before-define": "off",
31+
"no-inner-declarations": "off"
3032
}
3133
}

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ jobs:
3030

3131
- name: Publish package to NPM
3232
if: steps.check.outputs.changed == 'true'
33-
run: npm publish --access public
33+
run: npm i --no-package-lock --no-save pnpm && npm publish --access public
3434
env:
3535
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ node_modules
44
!.idea/dictionaries/shared.xml
55
!.idea/dictionaries/local.xml
66
.nyc_output
7+
8+
#using pnpm instead of npm
9+
package-lock.json

.idea/dictionaries/shared.xml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.npmignore

+4
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@ obj
88
/src
99
/planned
1010
/docs
11+
/archive
12+
/examples
1113
typedoc.json
1214
tsconfig.*
15+
pnpm-lock.yaml
16+
package-lock.json

dist-esm/filters/ofType.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist-esm/identity.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/filters/ofType.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/identity.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
* @author electricessence / https://github.com/electricessence/
33
* @license MIT
44
*/
5-
export default function identity(e: any): any;
5+
export default function identity(e: unknown): any;

dist/identity.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
"scripts": {
3636
"build:dist": "rimraf dist/* && copyfiles -u 1 src/**/*.d.ts dist && tsc",
3737
"build:dist-esm": "rimraf dist-esm/* && tsc -p tsconfig.esm.json",
38-
"build": "npm i && run-p build:*",
38+
"build": "pnpm i && run-p build:*",
3939
"bump": "npm run precommit && npm version patch",
40-
"docs": "rimraf docs/* && rimraf docs/.nojekyll && typedoc --options typedoc.json",
40+
"docs": "rimraf docs/* && rimraf docs/.nojekyll && typedoc --options typedoc.json --readme none",
4141
"lint": "eslint src/**/*.ts",
42-
"precommit": "npm i && run-p lint test && run-p build:* && npm run validate",
42+
"precommit": "pnpm i && run-p lint test && run-p build:* && npm run validate",
4343
"prepublishOnly": "npm run build && run-p validate test",
4444
"preversion": "run-p lint test",
4545
"postversion": "git push && git push --tags && npm run docs && git commit -m \"Updated docs.\" docs && git push",
@@ -57,11 +57,11 @@
5757
"devDependencies": {
5858
"@types/chai": "^4.2.11",
5959
"@types/mocha": "^7.0.2",
60-
"@typescript-eslint/eslint-plugin": "^2.34.0",
61-
"@typescript-eslint/parser": "^2.34.0",
60+
"@typescript-eslint/eslint-plugin": "^3.0.0",
61+
"@typescript-eslint/parser": "^3.0.0",
6262
"chai": "^4.2.0",
6363
"copyfiles": "^2.2.0",
64-
"eslint": "^7.0.0",
64+
"eslint": "^7.1.0",
6565
"eslint-config-typescript": "^3.0.0",
6666
"eslint-plugin-import": "^2.20.2",
6767
"eslint-plugin-node": "^11.1.0",
@@ -78,12 +78,12 @@
7878
},
7979
"dependencies": {
8080
"@tsdotnet/common-interfaces": "^1.0.4",
81-
"@tsdotnet/compare": "^1.3.12",
82-
"@tsdotnet/exceptions": "^1.0.15",
83-
"@tsdotnet/integer": "^1.0.10",
84-
"@tsdotnet/linked-node-list": "^1.3.10",
81+
"@tsdotnet/compare": "^1.3.13",
82+
"@tsdotnet/exceptions": "^1.0.16",
83+
"@tsdotnet/integer": "^1.0.11",
84+
"@tsdotnet/linked-node-list": "^1.3.11",
8585
"@tsdotnet/memoize": "^1.0.9",
86-
"@tsdotnet/queue": "^1.1.5",
86+
"@tsdotnet/queue": "^1.2.1",
8787
"tslib": "^2.0.0"
8888
}
8989
}

0 commit comments

Comments
 (0)