@@ -4,6 +4,7 @@ import reactHooks from "eslint-plugin-react-hooks";
44import reactRefresh from "eslint-plugin-react-refresh" ;
55import preferArrowFunctions from "eslint-plugin-prefer-arrow-functions" ;
66import storybook from "eslint-plugin-storybook" ;
7+ import importPlugin from "eslint-plugin-import" ;
78import globals from "globals" ;
89
910export default tseslint . config (
@@ -33,10 +34,17 @@ export default tseslint.config(
3334 "react-refresh" : reactRefresh ,
3435 "prefer-arrow-functions" : preferArrowFunctions ,
3536 storybook : storybook ,
37+ import : importPlugin ,
38+ } ,
39+ settings : {
40+ "import/resolver" : {
41+ typescript : true ,
42+ node : true ,
43+ } ,
3644 } ,
3745 rules : {
3846 ...reactHooks . configs . recommended . rules ,
39- curly : [ ' error' , ' all' ] ,
47+ curly : [ " error" , " all" ] ,
4048 "react-refresh/only-export-components" : "warn" ,
4149 "no-multiple-empty-lines" : "error" ,
4250 quotes : [ "error" , "double" , { avoidEscape : true } ] ,
@@ -57,6 +65,16 @@ export default tseslint.config(
5765 } ,
5866 ] ,
5967 "@typescript-eslint/no-empty-object-type" : "off" ,
68+ "import/extensions" : [
69+ "error" ,
70+ "ignorePackages" ,
71+ {
72+ js : "never" ,
73+ jsx : "never" ,
74+ ts : "never" ,
75+ tsx : "never" ,
76+ } ,
77+ ] ,
6078 } ,
6179 } ,
6280 // Special config for test files
0 commit comments