Skip to content

Commit b8c2324

Browse files
authored
Merge pull request #7 from nekoplanet/pr-1
Fix: reflect `@typescript-eslint/func-call-spacing` deprecation
2 parents 965f099 + 5b102ec commit b8c2324

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

configs/typescript.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import typescriptEslint from '@typescript-eslint/eslint-plugin';
2+
import stylisticEslint from '@stylistic/eslint-plugin';
23
import tsParser from '@typescript-eslint/parser';
34
import { fixupPluginRules } from '@eslint/compat';
45
import _import from 'eslint-plugin-import';
@@ -14,7 +15,8 @@ const tsRules = {
1415
}],
1516
}],
1617
*/
17-
'@typescript-eslint/func-call-spacing': ['error', 'never'],
18+
'@stylistic/function-call-spacing': ['error', 'never'],
19+
// '@typescript-eslint/func-call-spacing': ['error', 'never'],
1820
'@typescript-eslint/no-explicit-any': ['warn'],
1921
'@typescript-eslint/no-unused-vars': ['warn'],
2022
'@typescript-eslint/no-unnecessary-condition': ['warn'],
@@ -46,6 +48,7 @@ const tsRules = {
4648
export default {
4749
plugins: {
4850
'@typescript-eslint': fixupPluginRules(typescriptEslint),
51+
'@stylistic': fixupPluginRules(stylisticEslint),
4952
import: fixupPluginRules(_import),
5053
},
5154
languageOptions: {
@@ -60,4 +63,4 @@ export default {
6063
...javascript.rules,
6164
...tsRules,
6265
},
63-
};
66+
};

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@eslint/compat": ">= 1",
2525
"@typescript-eslint/eslint-plugin": ">= 7",
2626
"@typescript-eslint/parser": ">= 7",
27+
"@stylistic/eslint-plugin": ">= 2",
2728
"eslint": ">= 8",
2829
"eslint-plugin-import": ">= 2",
2930
"globals": ">= 15"
@@ -33,6 +34,7 @@
3334
"@types/node": "^20.14.8",
3435
"@typescript-eslint/eslint-plugin": "^7.13.1",
3536
"@typescript-eslint/parser": "^7.13.1",
37+
"@stylistic/eslint-plugin": "^2.9.0",
3638
"eslint": "^9.5.0",
3739
"eslint-plugin-import": "^2.29.1",
3840
"globals": "^15.6.0"

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)