|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + extends: ['@theguild'], |
| 4 | + rules: { |
| 5 | + 'no-empty': 'off', |
| 6 | + 'no-console': 'error', |
| 7 | + 'no-prototype-builtins': 'off', |
| 8 | + 'no-useless-constructor': 'off', |
| 9 | + 'no-unused-vars': 'off', |
| 10 | + 'object-shorthand': ['error', 'always'], |
| 11 | + '@typescript-eslint/explicit-module-boundary-types': 'off', |
| 12 | + '@typescript-eslint/no-unused-vars': 'off', |
| 13 | + '@typescript-eslint/no-use-before-define': 'off', |
| 14 | + '@typescript-eslint/no-namespace': 'off', |
| 15 | + 'no-unreachable-loop': 'error', |
| 16 | + '@typescript-eslint/no-empty-interface': 'off', |
| 17 | + 'prefer-arrow-callback': 'error', |
| 18 | + '@typescript-eslint/no-empty-function': 'off', |
| 19 | + '@typescript-eslint/no-var-requires': 'off', |
| 20 | + '@typescript-eslint/no-explicit-any': 'off', |
| 21 | + '@typescript-eslint/no-non-null-assertion': 'off', |
| 22 | + '@typescript-eslint/explicit-function-return-type': 'off', |
| 23 | + '@typescript-eslint/ban-ts-ignore': 'off', |
| 24 | + '@typescript-eslint/ban-types': 'off', |
| 25 | + 'no-lonely-if': 'error', |
| 26 | + 'import/no-extraneous-dependencies': [ |
| 27 | + 'error', |
| 28 | + { devDependencies: ['**/*.test.ts', '**/*.spec.ts', '**/test/**/*.ts'] }, |
| 29 | + ], |
| 30 | + |
| 31 | + // todo: enable |
| 32 | + 'unicorn/prefer-node-protocol': 'off', |
| 33 | + 'no-restricted-syntax': 'off', |
| 34 | + 'unicorn/filename-case': 'off', |
| 35 | + 'import/extensions': 'off', |
| 36 | + 'no-implicit-coercion': 'off', |
| 37 | + 'unicorn/numeric-separators-style': 'off', |
| 38 | + 'import/no-default-export': 'off', |
| 39 | + 'unicorn/no-lonely-if': 'off', |
| 40 | + 'unicorn/no-useless-spread': 'off', |
| 41 | + 'simple-import-sort/exports': 'off', |
| 42 | + 'unicorn/no-array-push-push': 'off', |
| 43 | + 'no-else-return': 'off', |
| 44 | + 'no-undef': 'off', |
| 45 | + 'import/first': 'off', |
| 46 | + 'n/no-restricted-import': 'off', |
| 47 | + 'import/no-duplicates': 'off', |
| 48 | + }, |
| 49 | + env: { |
| 50 | + es6: true, |
| 51 | + node: true, |
| 52 | + }, |
| 53 | + overrides: [ |
| 54 | + { |
| 55 | + files: ['**/tests/**/*.ts', '**/graphql-codegen-testing/**/*.ts', '*.spec.ts'], |
| 56 | + env: { |
| 57 | + jest: true, |
| 58 | + }, |
| 59 | + rules: { |
| 60 | + 'no-unused-vars': 'off', |
| 61 | + '@typescript-eslint/no-unused-vars': 'off', |
| 62 | + 'import/no-extraneous-dependencies': 'off', |
| 63 | + }, |
| 64 | + }, |
| 65 | + ], |
| 66 | + ignorePatterns: ['dist', 'node_modules', 'dev-test', 'website', 'test-files', 'examples/front-end', '.bob'], |
| 67 | +}; |
0 commit comments