@@ -55,7 +55,7 @@ module.exports = defineConfig({
55
55
} ,
56
56
parser : 'vue-eslint-parser' ,
57
57
parserOptions : {
58
- ecmaVersion : 'latest' ,
58
+ ecmaVersion : 'latest'
59
59
} ,
60
60
reportUnusedDisableDirectives : true ,
61
61
settings : {
@@ -69,7 +69,7 @@ module.exports = defineConfig({
69
69
'.js' ,
70
70
'.jsx' ,
71
71
'.json' ,
72
- '.node' ,
72
+ '.node'
73
73
]
74
74
}
75
75
}
@@ -91,6 +91,44 @@ module.exports = defineConfig({
91
91
'no-return-assign' : 'off' ,
92
92
93
93
// typescript
94
+ '@typescript-eslint/indent' : [ 'error' , 2 , {
95
+ SwitchCase : 1 ,
96
+ VariableDeclarator : 1 ,
97
+ outerIIFEBody : 1 ,
98
+ MemberExpression : 1 ,
99
+ FunctionDeclaration : { parameters : 1 , body : 1 } ,
100
+ FunctionExpression : { parameters : 1 , body : 1 } ,
101
+ CallExpression : { arguments : 1 } ,
102
+ ArrayExpression : 1 ,
103
+ ObjectExpression : 1 ,
104
+ ImportDeclaration : 1 ,
105
+ flatTernaryExpressions : false ,
106
+ ignoreComments : false ,
107
+ ignoredNodes : [
108
+ 'TemplateLiteral *' ,
109
+ 'JSXElement' ,
110
+ 'JSXElement > *' ,
111
+ 'JSXAttribute' ,
112
+ 'JSXIdentifier' ,
113
+ 'JSXNamespacedName' ,
114
+ 'JSXMemberExpression' ,
115
+ 'JSXSpreadAttribute' ,
116
+ 'JSXExpressionContainer' ,
117
+ 'JSXOpeningElement' ,
118
+ 'JSXClosingElement' ,
119
+ 'JSXFragment' ,
120
+ 'JSXOpeningFragment' ,
121
+ 'JSXClosingFragment' ,
122
+ 'JSXText' ,
123
+ 'JSXEmptyExpression' ,
124
+ 'JSXSpreadChild' ,
125
+ 'TSTypeParameterInstantiation' ,
126
+ 'FunctionExpression > .params[decorators.length > 0]' ,
127
+ 'FunctionExpression > .params > :matches(Decorator, :not(:first-child))' ,
128
+ 'ClassBody.body > PropertyDefinition[decorators.length > 0] > .key'
129
+ ] ,
130
+ offsetTernaryExpressions : true
131
+ } ] ,
94
132
'@typescript-eslint/no-explicit-any' : 'off' ,
95
133
'@typescript-eslint/strict-boolean-expressions' : 'off' ,
96
134
'@typescript-eslint/space-before-function-paren' : [
0 commit comments