Skip to content

Commit 5371595

Browse files
committed
fix: version 3.1.0 is here with full eslint linter running
1 parent 4b8505f commit 5371595

File tree

15 files changed

+13022
-9585
lines changed

15 files changed

+13022
-9585
lines changed

.eslintrc.js

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,37 @@
11
module.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
};

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"bracketSpacing": true,
3-
"jsxBracketSameLine": false,
3+
"bracketSameLine": false,
44
"singleQuote": false,
55
"trailingComma": "all",
66
"tabWidth": 2,

App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const App = () => {
2424
setTimeout(() => {
2525
SplashScreen.hide();
2626
}, 750);
27-
}, [scheme]);
27+
}, [scheme, isDarkMode]);
2828

2929
return (
3030
<>

__tests__/App-test.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)