@@ -8,10 +8,12 @@ module.exports = {
88 } ,
99 plugins : [
1010 "@typescript-eslint" ,
11+ "@stylistic/ts"
1112 ] ,
1213 extends : [
1314 "eslint:recommended" ,
14- "plugin:@typescript-eslint/all"
15+ "plugin:@typescript-eslint/all" ,
16+ "plugin:@typescript-eslint/stylistic-type-checked"
1517 ] ,
1618 env : {
1719 browser : true ,
@@ -44,11 +46,11 @@ module.exports = {
4446 "lines-around-comment" : "off" ,
4547
4648 // 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" ,
5254 "@typescript-eslint/no-unused-vars" : "warn" ,
5355 "@typescript-eslint/no-useless-constructor" : "warn" ,
5456 "@typescript-eslint/no-explicit-any" : "off" ,
@@ -60,19 +62,19 @@ module.exports = {
6062 "@typescript-eslint/prefer-optional-chain" : "warn" ,
6163 "@typescript-eslint/prefer-ts-expect-error" : "warn" ,
6264 "@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" ,
6668 "@typescript-eslint/consistent-indexed-object-style" : [ "error" , "record" ] ,
6769 "@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" ,
7072 "@typescript-eslint/naming-convention" : "error" ,
7173 "@typescript-eslint/no-magic-numbers" : "off" ,
7274 "@typescript-eslint/no-non-null-assertion" : "off" ,
7375 "@typescript-eslint/member-ordering" : "off" ,
7476 "@typescript-eslint/class-literal-property-style" : "off" ,
75- "@typescript-eslint /space-before-function-paren" : [ "warn" , {
77+ "@stylistic/ts /space-before-function-paren" : [ "warn" , {
7678 "anonymous" : "always" ,
7779 "named" : "never" ,
7880 "asyncArrow" : "always"
@@ -90,11 +92,11 @@ module.exports = {
9092 "@typescript-eslint/array-type" : "warn" ,
9193 "@typescript-eslint/prefer-for-of" : "off" ,
9294 "@typescript-eslint/no-restricted-imports" : "off" ,
93- "@typescript-eslint /lines-between-class-members" : [ "error" ] ,
95+ "@stylistic/ts /lines-between-class-members" : [ "error" ] ,
9496 "@typescript-eslint/max-params" : [ "warn" , {
9597 "max" : 5
9698 } ] ,
97- "@typescript-eslint /lines-around-comment" : [ "warn" , {
99+ "@stylistic/ts /lines-around-comment" : [ "warn" , {
98100 "allowInterfaceStart" : true ,
99101 "allowBlockStart" : true ,
100102 "allowModuleStart" : true ,
0 commit comments