|
6 | 6 | "airbnb-base", |
7 | 7 | "plugin:vue/recommended", |
8 | 8 | "@vue/typescript", |
9 | | - "plugin:import/typescript" |
| 9 | + "plugin:import/typescript", |
| 10 | + "plugin:@stylistic/disable-legacy" |
| 11 | + ], |
| 12 | + "plugins": [ |
| 13 | + "@stylistic" |
10 | 14 | ], |
11 | 15 | "rules": { |
12 | 16 | "vue/component-definition-name-casing": [ |
|
15 | 19 | ], |
16 | 20 | "vue/require-prop-types": 0, |
17 | 21 | "no-param-reassign": 0, |
18 | | - "arrow-parens": [ |
| 22 | + "@stylistic/arrow-parens": [ |
19 | 23 | "error", |
20 | 24 | "always" |
21 | 25 | ], |
22 | | - "indent": [ |
| 26 | + "@stylistic/indent": [ |
23 | 27 | "error", |
24 | 28 | 2, |
25 | 29 | { |
|
34 | 38 | "as-needed" |
35 | 39 | ], |
36 | 40 | "no-alert": 0, |
37 | | - "linebreak-style": 0, |
38 | | - "max-len": [ |
| 41 | + "@stylistic/linebreak-style": 0, |
| 42 | + "@stylistic/max-len": [ |
39 | 43 | "error", |
40 | 44 | { |
41 | 45 | "code": 120 |
42 | 46 | } |
43 | 47 | ], |
44 | 48 | "prefer-object-spread": 0, |
45 | | - "function-call-argument-newline": 0, |
| 49 | + "@stylistic/function-call-argument-newline": 0, |
46 | 50 | "vue/no-computed-properties-in-data": 0, |
47 | 51 | "import/extensions": [ |
48 | 52 | "error", |
|
60 | 64 | "files": ["*.ts"], |
61 | 65 | "extends": [ |
62 | 66 | "airbnb-typescript/base", |
63 | | - "plugin:@typescript-eslint/recommended" |
| 67 | + "plugin:@typescript-eslint/recommended", |
| 68 | + "plugin:@stylistic/disable-legacy" |
64 | 69 | ], |
65 | 70 | "parserOptions": { |
66 | 71 | "project": ["./tsconfig.json"] |
67 | 72 | }, |
68 | 73 | "rules": { |
69 | | - "indent": "off", |
70 | | - "@typescript-eslint/indent": [ |
| 74 | + "@stylistic/indent": [ |
71 | 75 | "error", |
72 | 76 | 2, |
73 | 77 | { |
74 | 78 | "ignoredNodes": [ |
75 | 79 | "ConditionalExpression" |
76 | | - ], |
77 | | - "SwitchCase": 0 |
| 80 | + ] |
78 | 81 | } |
79 | 82 | ], |
80 | | - "@typescript-eslint/member-delimiter-style": "error", |
81 | | - "@typescript-eslint/type-annotation-spacing": "error", |
| 83 | + "@stylistic/member-delimiter-style": "error", |
| 84 | + "@stylistic/type-annotation-spacing": "error", |
82 | 85 | "@typescript-eslint/array-type": [ |
83 | 86 | "error", |
84 | 87 | { |
|
0 commit comments