Skip to content

Commit

Permalink
Merge pull request #7 from nekoplanet/pr-1
Browse files Browse the repository at this point in the history
Fix: reflect `@typescript-eslint/func-call-spacing` deprecation
  • Loading branch information
syuilo authored Nov 15, 2024
2 parents 965f099 + 5b102ec commit b8c2324
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
7 changes: 5 additions & 2 deletions configs/typescript.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import stylisticEslint from '@stylistic/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import { fixupPluginRules } from '@eslint/compat';
import _import from 'eslint-plugin-import';
Expand All @@ -14,7 +15,8 @@ const tsRules = {
}],
}],
*/
'@typescript-eslint/func-call-spacing': ['error', 'never'],
'@stylistic/function-call-spacing': ['error', 'never'],
// '@typescript-eslint/func-call-spacing': ['error', 'never'],
'@typescript-eslint/no-explicit-any': ['warn'],
'@typescript-eslint/no-unused-vars': ['warn'],
'@typescript-eslint/no-unnecessary-condition': ['warn'],
Expand Down Expand Up @@ -46,6 +48,7 @@ const tsRules = {
export default {
plugins: {
'@typescript-eslint': fixupPluginRules(typescriptEslint),
'@stylistic': fixupPluginRules(stylisticEslint),
import: fixupPluginRules(_import),
},
languageOptions: {
Expand All @@ -60,4 +63,4 @@ export default {
...javascript.rules,
...tsRules,
},
};
};
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@eslint/compat": ">= 1",
"@typescript-eslint/eslint-plugin": ">= 7",
"@typescript-eslint/parser": ">= 7",
"@stylistic/eslint-plugin": ">= 2",
"eslint": ">= 8",
"eslint-plugin-import": ">= 2",
"globals": ">= 15"
Expand All @@ -33,6 +34,7 @@
"@types/node": "^20.14.8",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@stylistic/eslint-plugin": "^2.9.0",
"eslint": "^9.5.0",
"eslint-plugin-import": "^2.29.1",
"globals": "^15.6.0"
Expand Down
21 changes: 21 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit b8c2324

Please sign in to comment.