@@ -9,6 +9,8 @@ module.exports = {
99 'eslint:recommended' ,
1010 'plugin:@typescript-eslint/eslint-recommended' ,
1111 'plugin:@typescript-eslint/recommended' ,
12+ 'plugin:@typescript-eslint/recommended-requiring-type-checking' ,
13+ 'plugin:@typescript-eslint/strict' ,
1214 'plugin:react/recommended' ,
1315 'plugin:react/jsx-runtime' ,
1416 'plugin:import/recommended' ,
@@ -31,6 +33,10 @@ module.exports = {
3133 } ,
3234 ] ,
3335 parser : '@typescript-eslint/parser' ,
36+ parserOptions : {
37+ project : [ './tsconfig.json' ] ,
38+ tsconfigRootDir : __dirname ,
39+ } ,
3440 plugins : [
3541 '@typescript-eslint' ,
3642 'jsx-a11y' ,
@@ -39,11 +45,18 @@ module.exports = {
3945 'sonarjs' ,
4046 'sort-keys-fix' ,
4147 'typescript-sort-keys' ,
42- 'no-type-assertion' ,
4348 // HINT: prettier must be the last plugin to work
4449 'prettier' ,
4550 ] ,
4651 rules : {
52+ '@typescript-eslint/consistent-type-definitions' : [ 'error' , 'type' ] ,
53+ '@typescript-eslint/no-floating-promises' : [ 'error' , { ignoreVoid : true } ] ,
54+ '@typescript-eslint/no-misused-promises' : [
55+ 'error' ,
56+ {
57+ checksVoidReturn : false ,
58+ } ,
59+ ] ,
4760 '@typescript-eslint/no-unused-vars' : [
4861 'warn' ,
4962 {
@@ -90,7 +103,6 @@ module.exports = {
90103 ] ,
91104 'import/prefer-default-export' : 'off' ,
92105 'no-console' : [ 'warn' , { allow : [ 'warn' , 'error' ] } ] ,
93- 'no-type-assertion/no-type-assertion' : 'error' ,
94106 'prettier/prettier' : 'error' ,
95107 'react/jsx-sort-default-props' : 'error' ,
96108 'react/jsx-sort-props' : [
0 commit comments