@@ -4,7 +4,9 @@ module.exports = {
44 'eslint:recommended' ,
55 'plugin:@typescript-eslint/recommended' ,
66 'plugin:require-extensions/recommended' ,
7- // 'prettier', Since configs and plugins are installed in sub folders, this needs to be defined locally in package.json
7+ 'plugin:storybook/recommended' ,
8+ 'plugin:react/recommended' ,
9+ 'plugin:react-hooks/recommended' ,
810 ] ,
911 ignorePatterns : [ '**/node_modules/**' , '**/dist/**' ] ,
1012 // parser: '@typescript-eslint/parser', Since configs and plugins are installed in sub folders, this needs to be defined locally in package.json
@@ -18,6 +20,8 @@ module.exports = {
1820 'import/order' : 0 , // turn off in favor of eslint-plugin-simple-import-sort
1921 'import/no-unresolved' : 0 ,
2022 'import/no-duplicates' : 1 ,
23+ 'react/react-in-jsx-scope' : 'off' ,
24+ 'react-hooks/exhaustive-deps' : 'error' ,
2125
2226 'sort-imports' : 0 , // we use eslint-plugin-import instead
2327
@@ -56,4 +60,9 @@ module.exports = {
5660 } ,
5761 } ,
5862 ] ,
63+ settings : {
64+ react : {
65+ version : 'detect' ,
66+ } ,
67+ } ,
5968} ;
0 commit comments