diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 12:51:44 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 19:55:15 +0100 |
commit | ad193ec612cf3110ed847b7cb2fedb0b1080ef86 (patch) | |
tree | cb4931ffb8588a8a2475be881c4af91ed2ffef64 /.eslintrc.cjs | |
parent | Update docs (diff) | |
download | sophie-ad193ec612cf3110ed847b7cb2fedb0b1080ef86.tar.gz sophie-ad193ec612cf3110ed847b7cb2fedb0b1080ef86.tar.zst sophie-ad193ec612cf3110ed847b7cb2fedb0b1080ef86.zip |
build: Disable single-run eslint-typescript
See https://github.com/typescript-eslint/typescript-eslint/issues/3851
Also upgrades dependencies and simplifies eslint config (used during
debugging this issue to eliminate other possible sources of errors.)
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r-- | .eslintrc.cjs | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 92af738..7b05d5d 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs | |||
@@ -9,8 +9,9 @@ module.exports = { | |||
9 | '@typescript-eslint', | 9 | '@typescript-eslint', |
10 | ], | 10 | ], |
11 | extends: [ | 11 | extends: [ |
12 | 'airbnb-base', | 12 | 'airbnb', |
13 | 'airbnb-typescript/base', | 13 | 'airbnb-typescript', |
14 | 'airbnb/hooks', | ||
14 | 'plugin:@typescript-eslint/recommended', | 15 | 'plugin:@typescript-eslint/recommended', |
15 | 'plugin:@typescript-eslint/recommended-requiring-type-checking', | 16 | 'plugin:@typescript-eslint/recommended-requiring-type-checking', |
16 | ], | 17 | ], |
@@ -22,11 +23,13 @@ module.exports = { | |||
22 | }, | 23 | }, |
23 | parser: '@typescript-eslint/parser', | 24 | parser: '@typescript-eslint/parser', |
24 | parserOptions: { | 25 | parserOptions: { |
26 | extraFileExtensions: ['.cjs'], | ||
25 | sourceType: 'module', | 27 | sourceType: 'module', |
26 | project, | 28 | project, |
27 | allowAutomaticSingleRunInference: true, | 29 | allowAutomaticSingleRunInference: false, |
28 | tsconfigRootDir: __dirname, | 30 | tsconfigRootDir: __dirname, |
29 | warnOnUnsupportedTypeScriptVersion: false, | 31 | warnOnUnsupportedTypeScriptVersion: false, |
32 | EXPERIMENTAL_useSourceOfProjectReferenceRedirect: false, | ||
30 | }, | 33 | }, |
31 | settings: { | 34 | settings: { |
32 | 'import/parsers': { | 35 | 'import/parsers': { |
@@ -89,10 +92,19 @@ module.exports = { | |||
89 | }, | 92 | }, |
90 | { | 93 | { |
91 | files: [ | 94 | files: [ |
95 | '**/*.cjs', | ||
96 | ], | ||
97 | parserOptions: { | ||
98 | sourceType: 'script', | ||
99 | }, | ||
100 | }, | ||
101 | { | ||
102 | files: [ | ||
92 | '.electron-builder.config.cjs', | 103 | '.electron-builder.config.cjs', |
93 | 'config/**/*.{cjs,js}', | 104 | 'config/**/*.{cjs,js}', |
94 | 'jest.config.js', | 105 | 'jest.config.js', |
95 | 'scripts/**/*.js', | 106 | 'scripts/**/*.js', |
107 | 'packages/*/.eslintrc.cjs', | ||
96 | 'packages/*/*.config.js', | 108 | 'packages/*/*.config.js', |
97 | ], | 109 | ], |
98 | env: { | 110 | env: { |