-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (38 loc) · 1.02 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module.exports = {
extends: '@exodus/eslint-config/javascript',
overrides: [
{
files: ['*.graphql'],
parserOptions: {
schema: './tools/schemas/github.graphql',
operations: ['./src/**/*.ts']
},
extends: ['plugin:@graphql-eslint/operations-recommended'],
rules: {
'@graphql-eslint/executable-definitions': 'off',
'@graphql-eslint/require-id-when-available': 'off',
}
},
{
files: ['*.{ts,tsx}'],
processor: '@graphql-eslint/graphql',
extends: '@exodus/eslint-config/typescript',
parserOptions: {
project: ['./tsconfig.test.json'],
},
rules: {
'unicorn/prefer-top-level-await': 'off',
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: ['src/utils/testing.ts', '**/*.spec.ts'] },
],
},
},
{
files: ['*.{spec,test}.{ts,tsx}', '**/utils/testing.ts'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
],
}