-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
25 lines (25 loc) · 928 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"extends": ["@react-native-community", "prettier"],
"rules": {
"prettier/prettier": ["error"],
"prefer-const": "warn", // to avoid using let for variables that aren't reassigned
"no-console": ["error", { "allow": ["warn", "error"] }],
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }],
"import/prefer-default-export": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never",
"": "never" // this is for solving the error that sometime appears even though we set rules for all extensions we use up above
}
],
"import/no-unresolved": "off",
"simple-import-sort/imports": "error"
},
"plugins": ["@typescript-eslint", "prettier", "import", "simple-import-sort"]
}