@@ -11,10 +11,9 @@ module.exports = {
1111 'react-app' ,
1212 'plugin:import/warnings' ,
1313 'plugin:jsx-a11y/recommended' ,
14- 'prettier' ,
15- 'prettier/react' ,
16- 'prettier/@typescript-eslint' ,
14+ 'plugin:prettier/recommended' ,
1715 ] ,
16+ parser : '@typescript-eslint/parser' ,
1817 plugins : [
1918 'react' ,
2019 'react-hooks' ,
@@ -50,7 +49,15 @@ module.exports = {
5049 } ,
5150 {
5251 files : [ '**/*.ts?(x)' ] ,
53- plugins : [ 'typescript-sort-keys' ] ,
52+ extends : [
53+ 'react-app' ,
54+ 'plugin:import/warnings' ,
55+ 'eslint:recommended' ,
56+ 'plugin:@typescript-eslint/eslint-recommended' ,
57+ 'plugin:@typescript-eslint/recommended' ,
58+ 'plugin:prettier/recommended' ,
59+ ] ,
60+ plugins : [ '@typescript-eslint' , 'typescript-sort-keys' ] ,
5461 settings : {
5562 'import/parsers' : {
5663 '@typescript-eslint/parser' : [ '.ts' , '.tsx' ] ,
@@ -109,7 +116,7 @@ module.exports = {
109116 ] ,
110117 'no-unneeded-ternary' : WARN ,
111118 'no-var' : WARN ,
112-
119+ 'one-var' : [ WARN , 'never' ] ,
113120 'prefer-const' : WARN ,
114121 'prefer-rest-params' : WARN ,
115122 'prefer-spread' : WARN ,
0 commit comments