Skip to content

Commit 162f007

Browse files
authored
fix: reduce resource usage (#49)
1 parent 327c4d4 commit 162f007

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

index.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ export default [
2323
}
2424
}
2525
},
26+
// projectService is resource intensive, so only listing rules that require it here
27+
{
28+
languageOptions: {
29+
parserOptions: {
30+
projectService: true
31+
}
32+
},
33+
rules: {
34+
'@typescript-eslint/await-thenable': 'error',
35+
'@typescript-eslint/require-await': 'error'
36+
}
37+
},
2638
{
2739
plugins: {
2840
n: node, '@stylistic': stylistic
@@ -40,7 +52,6 @@ export default [
4052
'@stylistic/quote-props': ['error', 'as-needed'],
4153
'@stylistic/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
4254
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
43-
'@typescript-eslint/await-thenable': 'error',
4455
'@typescript-eslint/ban-ts-comment': 'off',
4556
'@typescript-eslint/ban-types': 'off',
4657
'@typescript-eslint/camelcase': 'off',
@@ -57,7 +68,6 @@ export default [
5768
'@typescript-eslint/no-unused-vars': ['error', { args: 'after-used', argsIgnorePattern: '^_' }],
5869
'@typescript-eslint/no-use-before-define': 'off',
5970
'@typescript-eslint/prefer-interface': 'off',
60-
'@typescript-eslint/require-await': 'error',
6171
'no-constant-condition': ['error', { checkLoops: false }],
6272
'no-duplicate-imports': 'error',
6373
'no-empty': ['error', { allowEmptyCatch: true }],

0 commit comments

Comments
 (0)