Skip to content

Commit 5148021

Browse files
committed
ts: add indent rule
1 parent 4ab3d39 commit 5148021

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

typescript.js

+19-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,24 @@ module.exports = {
115115
}
116116
}],
117117
'typescript-sort-keys/interface': 2,
118-
'typescript-sort-keys/string-enum': 2
118+
'typescript-sort-keys/string-enum': 2,
119+
'@stylistic/indent': [
120+
'error',
121+
4,
122+
{
123+
'CallExpression': {
124+
arguments: 'off'
125+
},
126+
'FunctionDeclaration': {
127+
body: 1,
128+
parameters: 2
129+
},
130+
'FunctionExpression': {
131+
parameters: 2
132+
},
133+
'MemberExpression': 'off',
134+
'SwitchCase': 0
135+
}
136+
]
119137
}
120138
}

0 commit comments

Comments
 (0)