-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
83 lines (83 loc) · 2 KB
/
.eslintrc.json
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"airbnb",
"plugin:react-redux/recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"tsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"flowtype",
"react",
"prettier",
"react-redux",
"react-hooks"
],
"rules": {
"react/jsx-props-no-spreading": "off",
"react/jsx-uses-vars": "warn",
"react-hooks/rules-of-hooks": "warn",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": ["warn", { "ignore": ["navigation"] }], // skip over component linting
"react/jsx-indent-props": "off",
"react/jsx-wrap-multilines": ["warn", { "declaration": false, "assignment": false }],
"import/no-cycle": "warn",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/extensions": [
"error", "ignorePackages", {
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}],
"react/jsx-filename-extension": [1, { "extensions": [".ts", ".tsx"] }],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"prettier/prettier": [
"error",
{
"bracketSpacing": true,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 100,
"useTabs": true,
"tabWidth": 2,
"arrowParens": "always"
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js", ".jsx", ".ts", ".tsx", ".json"
]
}
},
"react": {
"version": "detect"
}
}
}