11module . exports = {
22 root : true ,
3- extends : "@react-native-community" ,
3+ extends : [
4+ "eslint:recommended" ,
5+ "plugin:react/recommended" ,
6+ "plugin:@typescript-eslint/recommended" ,
7+ "@react-native-community" ,
8+ "prettier" ,
9+ ] ,
10+ ignorePatterns : [
11+ "**/*/*.js" ,
12+ "*.js" ,
13+ "*.svg" ,
14+ "*.json" ,
15+ "*.png" ,
16+ "package.json" ,
17+ "package-lock.json" ,
18+ ] ,
419 parser : "@typescript-eslint/parser" ,
5- plugins : [ "import" , "eslint-plugin-import" , "@typescript-eslint" , "prettier" ] ,
20+ plugins : [
21+ "import" ,
22+ "react" ,
23+ "react-native" ,
24+ "prettier" ,
25+ "react-hooks" ,
26+ "@typescript-eslint" ,
27+ "promise" ,
28+ "unused-imports" ,
29+ ] ,
30+ env : {
31+ browser : true ,
32+ es2021 : true ,
33+ "react-native/react-native" : true ,
34+ } ,
635 settings : {
736 "import/resolver" : {
837 node : {
@@ -49,8 +78,13 @@ module.exports = {
4978 constant : "always" ,
5079 } ,
5180 ] ,
81+ "react-hooks/exhaustive-deps" : [
82+ "error" ,
83+ { additionalHooks : "(useMemoOne)" } ,
84+ ] ,
5285 "max-len" : [ "error" , 120 ] ,
5386 "@typescript-eslint/ban-ts-comment" : 2 ,
87+ "@typescript-eslint/no-empty-function" : 0 ,
5488 "@typescript-eslint/no-explicit-any" : 1 ,
5589 "@typescript-eslint/explicit-module-boundary-types" : 0 ,
5690 "react/jsx-filename-extension" : [ "error" , { extensions : [ ".tsx" ] } ] ,
@@ -60,7 +94,6 @@ module.exports = {
6094 "react-native/no-color-literals" : 0 ,
6195 "react-native/no-raw-text" : 0 ,
6296 "import/no-extraneous-dependencies" : 2 ,
63- "import/extensions" : [ "error" , "never" , { svg : "always" } ] ,
6497 "import/no-named-as-default-member" : 2 ,
6598 "import/order" : 0 ,
6699 "import/no-duplicates" : 2 ,
@@ -77,10 +110,7 @@ module.exports = {
77110 "import/no-deprecated" : 0 ,
78111 "@typescript-eslint/indent" : 0 ,
79112 "react-hooks/rules-of-hooks" : 2 ,
80- "react-hooks/exhaustive-deps" : [
81- "error" ,
82- { additionalHooks : "(useMemoOne)" } ,
83- ] ,
113+
84114 "jest/no-identical-title" : 2 ,
85115 "jest/valid-expect" : 2 ,
86116 camelcase : 2 ,
@@ -92,11 +122,5 @@ module.exports = {
92122 endOfLine : "auto" ,
93123 } ,
94124 ] ,
95- "prettier/prettier" : [
96- "error" ,
97- {
98- endOfLine : "auto" ,
99- } ,
100- ] ,
101125 } ,
102126} ;
0 commit comments