From d33214bc4045831d30423eb9b7ab8f65283b154b Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 26 Apr 2023 19:42:21 +0200 Subject: build: reduce ESLint performance cost Disable some rules that we don't use but require repeated file parsing. --- subprojects/frontend/.eslintrc.cjs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'subprojects/frontend') diff --git a/subprojects/frontend/.eslintrc.cjs b/subprojects/frontend/.eslintrc.cjs index 466e5668..25b86a83 100644 --- a/subprojects/frontend/.eslintrc.cjs +++ b/subprojects/frontend/.eslintrc.cjs @@ -49,6 +49,15 @@ module.exports = { // In typescript, some class methods implementing an inderface do not use `this`: // https://github.com/typescript-eslint/typescript-eslint/issues/1103 'class-methods-use-this': 'off', + // Disable rules with a high performance cost. + // See https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/ + 'import/default': 'off', + 'import/extensions': 'off', + 'import/named': 'off', + 'import/namespace': 'off', + 'import/no-named-as-default': 'off', + 'import/no-named-as-default-member': 'off', + '@typescript-eslint/indent': 'off', // Make sure every import can be resolved by `eslint-import-resolver-typescript`. 'import/no-unresolved': 'error', // Organize imports automatically. -- cgit v1.2.3-70-g09d2