-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.json
More file actions
67 lines (67 loc) · 1.89 KB
/
.eslintrc.json
File metadata and controls
67 lines (67 loc) · 1.89 KB
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
{
"env": {
"jest/globals": true,
"react-native/react-native": true
},
"extends": [
"eslint:recommended",
"standard",
"plugin:react/recommended",
"prettier",
"prettier/standard"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"modules": true
},
"ecmaVersion": 7,
"sourceType": "module"
},
"plugins": ["babel", "react", "react-native", "react-hooks", "jest"],
"rules": {
"arrow-parens": ["error", "always"],
"camelcase": "error",
"curly": ["error", "all"],
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "warn",
"jest/no-identical-title": "warn",
"jest/valid-expect": "warn",
"max-len": [
"error",
{
"code": 140,
"ignoreUrls": true
}
],
"multiline-comment-style": ["error", "starred-block"],
"no-confusing-arrow": "error",
"no-console": "error",
"no-undefined": "error",
"no-var": "error",
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error",
"react-native/no-unused-styles": "error",
"react-native/split-platform-components": "error",
"react/display-name": ["off"],
"react/jsx-curly-brace-presence": ["error", "never"],
"react/jsx-uses-react": "warn",
"react/jsx-uses-vars": "error",
"react/no-unused-prop-types": "error",
"react/prop-types": [
"error",
{
"skipUndeclared": true
}
],
"react/require-default-props": "error"
},
"settings": {
"react": {
"pragma": "React",
"version": "16.8"
}
}
}