|
1 | 1 | module.exports = {
|
2 |
| - root: true, |
3 |
| - env: { |
4 |
| - es2020: true, |
5 |
| - }, |
6 |
| - parser: '@typescript-eslint/parser', |
7 |
| - plugins: ['@typescript-eslint'], |
8 |
| - rules: { |
9 |
| - 'no-else-return': ['error', { allowElseIf: false }], |
10 |
| - 'object-shorthand': ['error', 'always'], |
11 |
| - }, |
| 2 | + extends: ['@theguild'], |
| 3 | + overrides: [ |
| 4 | + { |
| 5 | + files: ['packages/graphql-yoga/src/plugins/**/*.ts'], |
| 6 | + rules: { |
| 7 | + 'unicorn/filename-case': 'off', |
| 8 | + }, |
| 9 | + }, |
| 10 | + { |
| 11 | + files: ['website/**'], |
| 12 | + rules: { 'import/no-default-export': 'off' }, |
| 13 | + }, |
| 14 | + { |
| 15 | + files: ['examples/**'], |
| 16 | + rules: { |
| 17 | + 'import/extensions': 'off', |
| 18 | + 'unicorn/filename-case': 'off', |
| 19 | + 'no-console': 'off', |
| 20 | + 'import/no-default-export': 'off', |
| 21 | + }, |
| 22 | + }, |
| 23 | + { |
| 24 | + files: [ |
| 25 | + '**/__tests__/**', |
| 26 | + '**/*.spec.ts', |
| 27 | + '**/*.test.ts', |
| 28 | + 'e2e/**', |
| 29 | + '**/__integration-tests__/**', |
| 30 | + ], |
| 31 | + rules: { |
| 32 | + '@typescript-eslint/no-non-null-assertion': 'off', |
| 33 | + 'import/extensions': 'off', |
| 34 | + 'unicorn/filename-case': 'off', |
| 35 | + }, |
| 36 | + }, |
| 37 | + { |
| 38 | + files: ['e2e/**'], |
| 39 | + rules: { |
| 40 | + 'no-console': 'off', |
| 41 | + }, |
| 42 | + }, |
| 43 | + { |
| 44 | + files: ['packages/graphiql/**', 'packages/render-graphiql/**'], |
| 45 | + rules: { |
| 46 | + 'unicorn/filename-case': 'off', |
| 47 | + 'import/extensions': 'off', |
| 48 | + 'import/no-default-export': 'off', |
| 49 | + }, |
| 50 | + }, |
| 51 | + ], |
12 | 52 | }
|
0 commit comments