From 316bbd903b8074eae26836a86a36586813a14a15 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 17 Apr 2022 12:49:48 +0800 Subject: [PATCH] fix: ts indent ingores --- packages/typescript/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/typescript/index.js b/packages/typescript/index.js index 474a02a..ddf48a9 100644 --- a/packages/typescript/index.js +++ b/packages/typescript/index.js @@ -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',