@@ -15,8 +15,16 @@ module.exports = {
1515 'plugin:react/recommended' ,
1616 'prettier' ,
1717 'plugin:react-hook-form/recommended' ,
18+ 'plugin:import/recommended' ,
19+ ] ,
20+ plugins : [
21+ '@typescript-eslint' ,
22+ 'react-hooks' ,
23+ 'prettier' ,
24+ 'jsx-a11y' ,
25+ 'react-hook-form' ,
26+ 'import' ,
1827 ] ,
19- plugins : [ '@typescript-eslint' , 'react-hooks' , 'prettier' , 'jsx-a11y' , 'react-hook-form' ] ,
2028 settings : {
2129 react : {
2230 version : 'detect' ,
@@ -35,6 +43,8 @@ module.exports = {
3543 '@typescript-eslint/no-non-null-assertion' : 'off' ,
3644 '@typescript-eslint/no-unused-vars' : [ 'error' , { argsIgnorePattern : '^_' } ] ,
3745 eqeqeq : [ 'error' , 'always' , { null : 'ignore' } ] ,
46+ 'import/no-default-export' : 'error' ,
47+ 'import/no-unresolved' : 'off' , // plugin doesn't know anything
3848 'jsx-a11y/label-has-associated-control' : [ 2 , { controlComponents : [ 'button' ] } ] ,
3949 'no-param-reassign' : 'error' ,
4050 'no-restricted-imports' : [
@@ -64,6 +74,11 @@ module.exports = {
6474 } ,
6575 ignorePatterns : [ 'dist/' ] ,
6676 overrides : [
77+ {
78+ // default export is needed in config files
79+ files : [ '*.config.ts' ] ,
80+ rules : { 'import/no-default-export' : 'off' } ,
81+ } ,
6782 {
6883 files : [ '*.js' ] ,
6984 rules : {
0 commit comments