Skip to content

Commit

Permalink
install and configure @stylistic/eslint-plugin
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rimrul committed Nov 9, 2024
1 parent 27c4a3d commit fa16834
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 54 deletions.
8 changes: 4 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["jest", "@typescript-eslint", "anti-trojan-source"],
"plugins": ["jest", "@typescript-eslint", "@stylistic", "anti-trojan-source"],
"rules": {
"@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
"@typescript-eslint/func-call-spacing": ["error", "never"],
"@stylistic/func-call-spacing": ["error", "never"],
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "error",
Expand All @@ -42,8 +42,8 @@
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/require-array-sort-compare": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/type-annotation-spacing": "error",
"@stylistic/semi": ["error", "never"],
"@stylistic/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "error",
"anti-trojan-source/no-bidi": "error",
"camelcase": "off",
Expand Down
171 changes: 121 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"unzipper": "^0.12.3"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^2.10.1",
"@types/jest": "^29.5.14",
"@types/node": "^20.9.0 <22.0.0",
"@types/unzipper": "^0.10.10",
Expand Down

0 comments on commit fa16834

Please sign in to comment.