Skip to content
This repository was archived by the owner on Apr 7, 2024. It is now read-only.

Commit c9498d0

Browse files
authored
Improve tools helping helping code quality (#76)
* Some improvements * Finish tools improvements
1 parent f74e85d commit c9498d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1429
-851
lines changed

.eslintrc

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
{
22
"root": true,
33
"extends": [
4-
"@react-native-community",
54
"plugin:@typescript-eslint/recommended",
65
"plugin:@typescript-eslint/recommended-requiring-type-checking",
76
"plugin:import/recommended",
7+
"plugin:no-unsanitized/DOM",
88
"plugin:import/typescript"
99
],
10-
"plugins": ["react", "@typescript-eslint", "prettier", "import"],
10+
"plugins": [
11+
"react",
12+
"@typescript-eslint",
13+
"import",
14+
"unused-imports",
15+
"simple-import-sort",
16+
"no-relative-import-paths",
17+
"prettier"
18+
],
1119
"parser": "@typescript-eslint/parser",
1220
"parserOptions": {
1321
"projectRoot": ".",
@@ -26,7 +34,6 @@
2634
}
2735
},
2836
"rules": {
29-
"prettier/prettier": "off",
3037
"quotes": ["error", "single", { "avoidEscape": true }],
3138
"camelcase": [
3239
"error",
@@ -210,7 +217,17 @@
210217
}
211218
],
212219
"react/react-in-jsx-scope": "off",
213-
"react-hooks/exhaustive-deps": "off"
220+
"react-hooks/exhaustive-deps": "off",
221+
"prettier/prettier": "error",
222+
"simple-import-sort/imports": "error",
223+
"simple-import-sort/exports": "error",
224+
"no-unused-vars": "off",
225+
"unused-imports/no-unused-imports": "error",
226+
"import/no-unused-modules": ["warn", { "unusedExports": true }],
227+
"no-relative-import-paths/no-relative-import-paths": [
228+
"warn",
229+
{ "allowSameFolder": true, "rootDir": "src", "prefix": "@" }
230+
]
214231
},
215232
"env": {
216233
"es2020": true

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ yarn-error.log
6161

6262
# Temporary files created by Metro to check the health of the file watcher
6363
.metro-health-check*
64+
65+
# Turbo module logs and cache directory
66+
.turbo

.prettierrc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33
"jsxSingleQuote": true,
44
"trailingComma": "none",
55
"bracketSameLine": true,
6-
"arrowParens": "avoid",
7-
"importOrder": ["^@\\w+/(.*)$", "^@/\\w+/(.*)$", "^[./]"],
8-
"importOrderSeparation": true,
9-
"importOrderSortSpecifiers": true
6+
"arrowParens": "avoid"
107
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"java.compile.nullAnalysis.mode": "disabled"
2+
"java.compile.nullAnalysis.mode": "disabled",
3+
"javascript.validate.enable": true
34
}

0 commit comments

Comments
 (0)