1+ /* eslint @typescript-eslint/no-var-requires: 'off' */
2+ const configs = require ( './configs' ) ;
3+
14const productionError =
25 process . env . NODE_ENV === 'production' ? 'error' : 'warn' ;
36
@@ -7,16 +10,7 @@ module.exports = {
710 node : true ,
811 'jest/globals' : true ,
912 } ,
10- extends : [
11- 'airbnb' ,
12- 'plugin:@typescript-eslint/recommended' ,
13- 'plugin:import/typescript' ,
14- 'plugin:jest/recommended' ,
15- 'plugin:prettier/recommended' ,
16- 'prettier' ,
17- 'prettier/@typescript-eslint' ,
18- 'prettier/react' ,
19- ] ,
13+ extends : configs . concat ( 'airbnb-base' ) ,
2014 parser : '@typescript-eslint/parser' ,
2115 parserOptions : {
2216 ecmaVersion : 2018 ,
@@ -25,9 +19,8 @@ module.exports = {
2519 jsx : true ,
2620 modules : true ,
2721 } ,
28- project : './tsconfig.json' ,
2922 } ,
30- plugins : [ '@typescript-eslint' , 'import' , 'jest' , 'react-hooks' ] ,
23+ plugins : [ '@typescript-eslint' , 'import' , 'jest' ] ,
3124 globals : {
3225 window : true ,
3326 document : true ,
@@ -62,45 +55,24 @@ module.exports = {
6255 } ,
6356 ] ,
6457 'import/prefer-default-export' : 'off' ,
65- 'jsx-a11y/interactive-supports-focus' : 'off' ,
66- 'jsx-a11y/click-events-have-key-events' : 'off' ,
67- 'jsx-a11y/label-has-associated-control' : 'off' ,
68- 'jsx-a11y/label-has-for' : [
69- 'error' ,
70- {
71- required : {
72- every : [ 'id' ] ,
73- } ,
74- } ,
75- ] ,
7658 'no-nested-ternary' : 'off' ,
7759 'no-param-reassign' : 'off' ,
7860 'no-plusplus' : 'off' ,
7961 'no-restricted-syntax' : 'off' ,
8062 'no-shadow' : 'off' ,
8163 'no-underscore-dangle' : 'off' ,
8264 'spaced-comment' : 'off' ,
83- 'react/destructuring-assignment' : 'off' ,
84- 'react/jsx-boolean-value' : 'off' ,
85- 'react/jsx-curly-brace-presence' : [
86- 'error' ,
87- { props : 'never' , children : 'never' } ,
88- ] ,
89- 'react/jsx-filename-extension' : [ 'error' , { extensions : [ '.tsx' ] } ] ,
90- 'react/jsx-uses-vars' : 'error' ,
91- 'react/no-danger' : 'off' ,
92- 'react/no-unused-prop-types' : 'off' ,
93- 'react/prop-types' : 'off' ,
94- 'react/require-default-props' : 'off' ,
9565 'no-console' : productionError ,
9666 'no-debugger' : productionError ,
67+ 'operator-linebreak' : [
68+ 'error' ,
69+ 'after' ,
70+ { overrides : { '?' : 'before' , ':' : 'before' } } ,
71+ ] ,
9772 } ,
9873 settings : {
9974 'import/resolver' : {
10075 typescript : { } ,
10176 } ,
102- react : {
103- version : 'detect' ,
104- } ,
10577 } ,
10678} ;
0 commit comments