aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/.eslintrc.cjs
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-04-26 19:42:21 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-04-26 19:42:21 +0200
commitd33214bc4045831d30423eb9b7ab8f65283b154b (patch)
treeaf25d02f0a2b7855268e20a81d39e280f4fb34dd /subprojects/frontend/.eslintrc.cjs
parentbuild: improve Xtext project isolation (diff)
downloadrefinery-d33214bc4045831d30423eb9b7ab8f65283b154b.tar.gz
refinery-d33214bc4045831d30423eb9b7ab8f65283b154b.tar.zst
refinery-d33214bc4045831d30423eb9b7ab8f65283b154b.zip
build: reduce ESLint performance cost
Disable some rules that we don't use but require repeated file parsing.
Diffstat (limited to 'subprojects/frontend/.eslintrc.cjs')
-rw-r--r--subprojects/frontend/.eslintrc.cjs9
1 files changed, 9 insertions, 0 deletions
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 = {
49 // In typescript, some class methods implementing an inderface do not use `this`: 49 // In typescript, some class methods implementing an inderface do not use `this`:
50 // https://github.com/typescript-eslint/typescript-eslint/issues/1103 50 // https://github.com/typescript-eslint/typescript-eslint/issues/1103
51 'class-methods-use-this': 'off', 51 'class-methods-use-this': 'off',
52 // Disable rules with a high performance cost.
53 // See https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/
54 'import/default': 'off',
55 'import/extensions': 'off',
56 'import/named': 'off',
57 'import/namespace': 'off',
58 'import/no-named-as-default': 'off',
59 'import/no-named-as-default-member': 'off',
60 '@typescript-eslint/indent': 'off',
52 // Make sure every import can be resolved by `eslint-import-resolver-typescript`. 61 // Make sure every import can be resolved by `eslint-import-resolver-typescript`.
53 'import/no-unresolved': 'error', 62 'import/no-unresolved': 'error',
54 // Organize imports automatically. 63 // Organize imports automatically.