Skip to content

Commit fa16834

Browse files
committed
install and configure @stylistic/eslint-plugin
Since some rules got moved out of @typescript-eslint/eslint-plugin we need this additional plugin to keep the same set of linter rules working. Signed-off-by: Matthias Aßhauer <[email protected]>
1 parent 27c4a3d commit fa16834

File tree

3 files changed

+126
-54
lines changed

3 files changed

+126
-54
lines changed

.eslintrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
"sourceType": "module",
1212
"project": "./tsconfig.json"
1313
},
14-
"plugins": ["jest", "@typescript-eslint", "anti-trojan-source"],
14+
"plugins": ["jest", "@typescript-eslint", "@stylistic", "anti-trojan-source"],
1515
"rules": {
1616
"@typescript-eslint/array-type": "error",
1717
"@typescript-eslint/await-thenable": "error",
1818
"@typescript-eslint/ban-ts-comment": "error",
1919
"@typescript-eslint/consistent-type-assertions": "error",
2020
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
2121
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
22-
"@typescript-eslint/func-call-spacing": ["error", "never"],
22+
"@stylistic/func-call-spacing": ["error", "never"],
2323
"@typescript-eslint/no-array-constructor": "error",
2424
"@typescript-eslint/no-empty-interface": "error",
2525
"@typescript-eslint/no-explicit-any": "error",
@@ -42,8 +42,8 @@
4242
"@typescript-eslint/promise-function-async": "error",
4343
"@typescript-eslint/require-array-sort-compare": "error",
4444
"@typescript-eslint/restrict-plus-operands": "error",
45-
"@typescript-eslint/semi": ["error", "never"],
46-
"@typescript-eslint/type-annotation-spacing": "error",
45+
"@stylistic/semi": ["error", "never"],
46+
"@stylistic/type-annotation-spacing": "error",
4747
"@typescript-eslint/unbound-method": "error",
4848
"anti-trojan-source/no-bidi": "error",
4949
"camelcase": "off",

package-lock.json

Lines changed: 121 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"unzipper": "^0.12.3"
3434
},
3535
"devDependencies": {
36+
"@stylistic/eslint-plugin": "^2.10.1",
3637
"@types/jest": "^29.5.14",
3738
"@types/node": "^20.9.0 <22.0.0",
3839
"@types/unzipper": "^0.10.10",

0 commit comments

Comments
 (0)