fix: ts indent ingores

This commit is contained in:
Anthony Fu 2022-04-17 12:49:48 +08:00
parent bce5016b53
commit 316bbd903b

View File

@ -29,7 +29,12 @@ module.exports = {
// Override JS
'no-useless-constructor': 'off',
'indent': 'off',
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/indent': ['error', 2, {
ignoredNodes: [
'JSXAttribute',
'TSTypeParameterInstantiation',
],
}],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-redeclare': 'off',