@@ -3,65 +3,51 @@ module.exports = {
33 extends : [ '@theguild' ] ,
44 rules : {
55 'no-empty' : 'off' ,
6- 'no-console' : 'error' ,
76 'no-prototype-builtins' : 'off' ,
87 'no-useless-constructor' : 'off' ,
9- 'no-unused-vars' : 'off' ,
10- 'object-shorthand' : [ 'error' , 'always' ] ,
118 '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
129 '@typescript-eslint/no-unused-vars' : 'off' ,
1310 '@typescript-eslint/no-use-before-define' : 'off' ,
1411 '@typescript-eslint/no-namespace' : 'off' ,
15- 'no-unreachable-loop' : 'error' ,
1612 '@typescript-eslint/no-empty-interface' : 'off' ,
17- 'prefer-arrow-callback' : 'error' ,
1813 '@typescript-eslint/no-empty-function' : 'off' ,
1914 '@typescript-eslint/no-var-requires' : 'off' ,
2015 '@typescript-eslint/no-explicit-any' : 'off' ,
2116 '@typescript-eslint/no-non-null-assertion' : 'off' ,
2217 '@typescript-eslint/explicit-function-return-type' : 'off' ,
2318 '@typescript-eslint/ban-ts-ignore' : 'off' ,
2419 '@typescript-eslint/ban-types' : 'off' ,
25- 'no-lonely-if' : 'error' ,
2620 'import/no-extraneous-dependencies' : [
2721 'error' ,
2822 { devDependencies : [ '**/*.test.ts' , '**/*.spec.ts' , '**/test/**/*.ts' ] } ,
2923 ] ,
3024
3125 // todo: enable
32- 'unicorn/prefer-node-protocol' : 'off' ,
33- 'no-restricted-syntax' : 'off' ,
3426 'unicorn/filename-case' : 'off' ,
3527 'import/extensions' : 'off' ,
36- 'no-implicit-coercion' : 'off' ,
37- 'unicorn/numeric-separators-style' : 'off' ,
3828 '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' ,
29+ // todo: enable in v3
30+ 'unicorn/prefer-node-protocol' : 'off' ,
4831 } ,
4932 env : {
5033 es6 : true ,
5134 node : true ,
5235 } ,
5336 overrides : [
5437 {
55- files : [ '**/tests/**/*.ts' , '**/graphql-codegen-testing/**/*.ts' , '*.spec.ts' ] ,
38+ files : [ 'website/**' ] ,
39+ extends : '@theguild/eslint-config/react' ,
40+ } ,
41+ {
42+ files : [ '**/tests/**/*.{js,ts,tsx}' , '**/graphql-codegen-testing/**/*.ts' , '*.spec.ts' ] ,
5643 env : {
5744 jest : true ,
5845 } ,
5946 rules : {
60- 'no-unused-vars' : 'off' ,
6147 '@typescript-eslint/no-unused-vars' : 'off' ,
6248 'import/no-extraneous-dependencies' : 'off' ,
6349 } ,
6450 } ,
6551 ] ,
66- ignorePatterns : [ 'dist' , 'node_modules' , ' dev-test', 'website' , 'test-files' , ' examples/front-end', '.bob ' ] ,
52+ ignorePatterns : [ 'dev-test' , 'examples/front-end' , 'website ' ] ,
6753} ;
0 commit comments