@@ -8,10 +8,12 @@ module.exports = {
8
8
} ,
9
9
plugins : [
10
10
"@typescript-eslint" ,
11
+ "@stylistic/ts"
11
12
] ,
12
13
extends : [
13
14
"eslint:recommended" ,
14
- "plugin:@typescript-eslint/all"
15
+ "plugin:@typescript-eslint/all" ,
16
+ "plugin:@typescript-eslint/stylistic-type-checked"
15
17
] ,
16
18
env : {
17
19
browser : true ,
@@ -44,11 +46,11 @@ module.exports = {
44
46
"lines-around-comment" : "off" ,
45
47
46
48
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules
47
- '@typescript-eslint /object-curly-spacing' : [ 'warn' , 'always' ] ,
48
- "@typescript-eslint /indent" : [ "warn" , 4 ] ,
49
- "@typescript-eslint /quotes" : [ "warn" , "single" ] ,
50
- "@typescript-eslint /semi" : "error" ,
51
- "@typescript-eslint /no-extra-parens" : "error" ,
49
+ '@stylistic/ts /object-curly-spacing' : [ 'warn' , 'always' ] ,
50
+ "@stylistic/ts /indent" : [ "warn" , 4 ] ,
51
+ "@stylistic/ts /quotes" : [ "warn" , "single" ] ,
52
+ "@stylistic/ts /semi" : "error" ,
53
+ "@stylistic/ts /no-extra-parens" : "error" ,
52
54
"@typescript-eslint/no-unused-vars" : "warn" ,
53
55
"@typescript-eslint/no-useless-constructor" : "warn" ,
54
56
"@typescript-eslint/no-explicit-any" : "off" ,
@@ -60,19 +62,19 @@ module.exports = {
60
62
"@typescript-eslint/prefer-optional-chain" : "warn" ,
61
63
"@typescript-eslint/prefer-ts-expect-error" : "warn" ,
62
64
"@typescript-eslint/promise-function-async" : "error" ,
63
- "@typescript-eslint /func-call-spacing" : [ "error" , "never" ] ,
64
- "@typescript-eslint /comma-spacing" : "warn" ,
65
- "@typescript-eslint /keyword-spacing" : "warn" ,
65
+ "@stylistic/ts /func-call-spacing" : [ "error" , "never" ] ,
66
+ "@stylistic/ts /comma-spacing" : "warn" ,
67
+ "@stylistic/ts /keyword-spacing" : "warn" ,
66
68
"@typescript-eslint/consistent-indexed-object-style" : [ "error" , "record" ] ,
67
69
"@typescript-eslint/consistent-type-imports" : [ "error" , { prefer : 'type-imports' } ] ,
68
- "@typescript-eslint /member-delimiter-style" : "warn" ,
69
- "@typescript-eslint /type-annotation-spacing" : "warn" ,
70
+ "@stylistic/ts /member-delimiter-style" : "warn" ,
71
+ "@stylistic/ts /type-annotation-spacing" : "warn" ,
70
72
"@typescript-eslint/naming-convention" : "error" ,
71
73
"@typescript-eslint/no-magic-numbers" : "off" ,
72
74
"@typescript-eslint/no-non-null-assertion" : "off" ,
73
75
"@typescript-eslint/member-ordering" : "off" ,
74
76
"@typescript-eslint/class-literal-property-style" : "off" ,
75
- "@typescript-eslint /space-before-function-paren" : [ "warn" , {
77
+ "@stylistic/ts /space-before-function-paren" : [ "warn" , {
76
78
"anonymous" : "always" ,
77
79
"named" : "never" ,
78
80
"asyncArrow" : "always"
@@ -90,11 +92,11 @@ module.exports = {
90
92
"@typescript-eslint/array-type" : "warn" ,
91
93
"@typescript-eslint/prefer-for-of" : "off" ,
92
94
"@typescript-eslint/no-restricted-imports" : "off" ,
93
- "@typescript-eslint /lines-between-class-members" : [ "error" ] ,
95
+ "@stylistic/ts /lines-between-class-members" : [ "error" ] ,
94
96
"@typescript-eslint/max-params" : [ "warn" , {
95
97
"max" : 5
96
98
} ] ,
97
- "@typescript-eslint /lines-around-comment" : [ "warn" , {
99
+ "@stylistic/ts /lines-around-comment" : [ "warn" , {
98
100
"allowInterfaceStart" : true ,
99
101
"allowBlockStart" : true ,
100
102
"allowModuleStart" : true ,
0 commit comments