Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: reflect @typescript-eslint/func-call-spacing deprecation #7

Merged
merged 3 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.