From 5b7377bacf517586a51a5f742be51c36dbc2e3cb Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Mon, 5 Aug 2019 03:25:46 +0200 Subject: [PATCH] fix: turn some slow rules off for perf --- .eslintrc.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index bd97e445..86fb8f46 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -101,9 +101,10 @@ module.exports = { yoda: 'error', // Imports + 'import/extensions': ['error', 'never'], 'import/no-deprecated': 'warn', 'import/no-unused-modules': 'error', - 'import/no-cycle': 'warn', + 'import/no-cycle': 'off', // Too slow 'import/no-self-import': 'error', 'import/no-dynamic-require': 'error', 'import/no-useless-path-segments': 'error', @@ -188,7 +189,7 @@ module.exports = { '@typescript-eslint/no-triple-slash-reference': 'error', '@typescript-eslint/no-unnecessary-qualifier': 'error', '@typescript-eslint/no-unnecessary-type-assertion': 'warn', - '@typescript-eslint/no-unused-vars': 'warn', + '@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }], '@typescript-eslint/no-use-before-define': ['error', { functions: false }], '@typescript-eslint/no-var-requires': 'error', '@typescript-eslint/prefer-for-of': 'error', @@ -201,12 +202,16 @@ module.exports = { '@typescript-eslint/unified-signatures': 'error', 'jsdoc/no-types': 'error', + 'jsdoc/no-undefined-types': 'off', 'jsdoc/require-param-type': 'off', 'jsdoc/require-returns-type': 'off', 'jsdoc/valid-types': 'off', 'import/no-unresolved': 'off', 'import/default': 'off', 'import/named': 'off', + 'import/namespace': 'off', + 'import/no-deprecated': 'off', + 'react/no-direct-mutation-state': 'off', 'no-undef': 'off', 'no-dupe-class-members': 'off', },