@@ -2,42 +2,38 @@ module.exports = {
22 env : {
33 browser : true ,
44 es2020 : true ,
5- 'jest/globals' : true
6- } ,
7- globals : {
8- JestMockFn : true ,
95 } ,
106 extends : [
117 'plugin:react/recommended' ,
128 'airbnb' ,
139 'plugin:prettier/recommended' ,
14- 'plugin:jest/recommended'
10+ 'plugin:@typescript-eslint/eslint-recommended' ,
11+ 'plugin:@typescript-eslint/recommended' ,
1512 ] ,
13+ parser : '@typescript-eslint/parser' ,
1614 parserOptions : {
1715 ecmaFeatures : {
1816 jsx : true ,
1917 } ,
2018 ecmaVersion : 11 ,
2119 sourceType : 'module' ,
2220 } ,
23- plugins : [ 'jest ' , 'react' , 'react-hooks ' , 'prettier' ] ,
21+ plugins : [ 'react ' , 'react-hooks ' , '@typescript-eslint ' , 'prettier' ] ,
2422 settings : {
2523 'import/resolver' : {
2624 node : {
27- extensions : [ '.js ' , '.jsx ' , '.json ' ] ,
25+ extensions : [ '.jsx ' , '.ts ' , '.tsx ' ] ,
2826 } ,
2927 } ,
3028 } ,
3129 rules : {
3230 'react-hooks/rules-of-hooks' : 'error' ,
3331 'react-hooks/exhaustive-deps' : 'error' ,
34- 'react/jsx-filename-extension' : [
35- 'error' ,
36- { extensions : [ '.js' , '.jsx' , '.json' ] } ,
37- ] ,
32+ '@typescript-eslint/explicit-function-return-type' : 'off' ,
33+ 'react/jsx-filename-extension' : [ 'error' , { extensions : [ '.jsx' , '.tsx' ] } ] ,
3834 'react/prop-types' : 'off' ,
3935 'react/jsx-one-expression-per-line' : 'off' ,
40- 'import/extensions' : [ 'off ' ] ,
36+ 'import/extensions' : [ 'error' , 'never '] ,
4137 'import/prefer-default-export' : 'off' ,
4238 'import/no-unresolved' : [ 'error' , { ignore : [ 'react-hooks-fetch' ] } ] ,
4339 camelcase : [
@@ -50,5 +46,6 @@ module.exports = {
5046 ] ,
5147 'react/state-in-constructor' : 'off' ,
5248 'no-console' : 'off' ,
49+ 'react/react-in-jsx-scope' : 'off' ,
5350 } ,
5451} ;
0 commit comments