Skip to content

Commit

Permalink
deps: @types/eslint:8.4.6→8.4.10 @types/node:18.7.14→18.11.18 @typesc…
Browse files Browse the repository at this point in the history
…ript-eslint/eslint-plugin:5.36.1→5.48.0 @typescript-eslint/parser:5.36.1→5.48.0 eslint:8.23.0→8.31.0 eslint-import-resolver-typescript:3.5.0→3.5.2 lint-staged:13.0.3→13.1.0 typescript:4.8.2→4.9.4
  • Loading branch information
gjbkz committed Jan 5, 2023
1 parent 39979bf commit c546449
Show file tree
Hide file tree
Showing 5 changed files with 427 additions and 368 deletions.
15 changes: 12 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"eslint-plugin-import"
],
"env": {
"es2021": true
"es2022": true
},
"rules": {
"accessor-pairs": 0,
Expand Down Expand Up @@ -146,6 +146,10 @@
2,
"always"
],
"logical-assignment-operators": [
2,
"never"
],
"max-classes-per-file": 0,
"max-depth": 0,
"max-len": 0,
Expand Down Expand Up @@ -212,6 +216,7 @@
"no-empty-character-class": 2,
"no-empty-function": 2,
"no-empty-pattern": 2,
"no-empty-static-block": 2,
"no-empty": 2,
"no-eq-null": 2,
"no-eval": 2,
Expand Down Expand Up @@ -297,6 +302,7 @@
"no-negated-condition": 2,
"no-nested-ternary": 2,
"no-new-func": 2,
"no-new-native-nonconstructor": 2,
"no-new-object": 2,
"no-new-symbol": 2,
"no-new-wrappers": 2,
Expand Down Expand Up @@ -567,7 +573,9 @@
"import/dynamic-import-chunkname": 2,
"import/no-import-module-exports": 2,
"import/exports-last": 0,
"import/no-deprecated": 2
"import/no-deprecated": 2,
"@nlib/no-globals": 0,
"@nlib/print-filename": 0
},
"settings": {
"import/extensions": [
Expand Down Expand Up @@ -881,6 +889,7 @@
"@typescript-eslint/no-unsafe-argument": 2,
"@typescript-eslint/no-unsafe-assignment": 2,
"@typescript-eslint/no-unsafe-call": 2,
"@typescript-eslint/no-unsafe-declaration-merging": 2,
"@typescript-eslint/no-unsafe-member-access": 2,
"@typescript-eslint/no-unsafe-return": 2,
"@typescript-eslint/no-useless-empty-export": 2,
Expand Down Expand Up @@ -912,7 +921,7 @@
2,
"always"
],
"@typescript-eslint/sort-type-union-intersection-members": 2,
"@typescript-eslint/sort-type-constituents": 2,
"@typescript-eslint/strict-boolean-expressions": 0,
"@typescript-eslint/switch-exhaustiveness-check": 2,
"@typescript-eslint/triple-slash-reference": [
Expand Down
10 changes: 9 additions & 1 deletion build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const eslintRules = {
'linebreak-style': [ERROR, 'unix'],
'lines-around-comment': OFF,
'lines-between-class-members': [ERROR, 'always'],
'logical-assignment-operators': [ERROR, 'never'],
'max-classes-per-file': OFF,
'max-depth': OFF,
'max-len': OFF,
Expand Down Expand Up @@ -116,6 +117,7 @@ const eslintRules = {
'no-empty-character-class': ERROR,
'no-empty-function': ERROR,
'no-empty-pattern': ERROR,
'no-empty-static-block': ERROR,
'no-empty': ERROR,
'no-eq-null': ERROR,
'no-eval': ERROR,
Expand Down Expand Up @@ -170,6 +172,7 @@ const eslintRules = {
'no-negated-condition': ERROR,
'no-nested-ternary': ERROR,
'no-new-func': ERROR,
'no-new-native-nonconstructor': ERROR,
'no-new-object': ERROR,
'no-new-symbol': ERROR,
'no-new-wrappers': ERROR,
Expand Down Expand Up @@ -410,6 +413,10 @@ const baseRules = merge(
'exports-last': OFF,
'no-deprecated': ERROR,
}),
prefix('@nlib/', {
'no-globals': OFF,
'print-filename': OFF,
}),
);

const config = {
Expand Down Expand Up @@ -563,6 +570,7 @@ const config = {
'no-unsafe-argument': ERROR,
'no-unsafe-assignment': ERROR,
'no-unsafe-call': ERROR,
'no-unsafe-declaration-merging': ERROR,
'no-unsafe-member-access': ERROR,
'no-unsafe-return': ERROR,
'no-useless-empty-export': ERROR,
Expand Down Expand Up @@ -591,7 +599,7 @@ const config = {
'restrict-plus-operands': ERROR,
'restrict-template-expressions': OFF,
'return-await': [ERROR, 'always'],
'sort-type-union-intersection-members': ERROR,
'sort-type-constituents': ERROR,
'strict-boolean-expressions': OFF,
'switch-exhaustiveness-check': ERROR,
'triple-slash-reference': [ERROR, {
Expand Down
Loading

0 comments on commit c546449

Please sign in to comment.