-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
39 lines (39 loc) · 1.22 KB
/
.eslintrc.js
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module.exports = {
root: true,
extends: "@react-native-community",
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "simple-import-sort", "import"],
overrides: [
{
files: ["*.ts", "*.tsx", "*.js"],
rules: {
"@typescript-eslint/no-shadow": ["error"],
"no-shadow": "off",
"no-undef": "off",
"object-curly-spacing": ["warn", "always"],
quotes: ["warn", "double", { allowTemplateLiterals: true }],
"@typescript-eslint/no-unused-vars": "warn",
"react-hooks/exhaustive-deps": "warn",
"import/named": "off",
"import/namespace": "off",
"import/no-cycle": "error",
"import/order": "warn",
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "error",
"sort-imports": [
"off",
{
ignoreCase: false,
ignoreDeclarationSort: false,
ignoreMemberSort: false,
memberSyntaxSortOrder: ["single", "multiple", "all", "none"],
allowSeparatedGroups: false,
},
],
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
},
},
],
};