forked from Plant-for-the-Planet-org/treecounter-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
98 lines (98 loc) · 2.16 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "babel-eslint",
"plugins": [
"react",
"react-native",
"json"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jquery": true,
"react-native/react-native": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"eol-last": 2,
"jsx-quotes": 2,
"no-constant-condition": 2,
"no-dupe-keys": 2,
"no-empty": 2,
"no-extra-boolean-cast": 2,
"no-prototype-builtins": 2,
"no-undef": 2,
"no-underscore-dangle": 2,
"no-unreachable": 2,
"no-unused-vars": 2,
"no-useless-escape": 2,
"no-console": 0,
"no-var": 2,
"quotes": [
2,
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"strict": [
2,
"global"
],
"react-native/no-color-literals": 1, //
"react-native/no-inline-styles": 1,
"react-native/no-raw-text": 1, //
"react-native/no-unused-styles": 1, //
"react-native/split-platform-components": 1,
"react/display-name": 0,
"react/jsx-boolean-value": 2, //
"react/jsx-key": 2, //
"react/jsx-no-duplicate-props": 2, //
"react/jsx-no-target-blank": 2, //
"react/jsx-no-undef": 2, //
"react/jsx-sort-props": 0,
"react/jsx-wrap-multilines": 2,
"react/no-deprecated": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-find-dom-node": 1,
"react/no-multi-comp": 0,
"react/no-string-refs": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2
},
"overrides": [
{
"files": [
"**/*.native.js"
],
"rules": {
"react-native/no-color-literals": 2,
"react-native/no-inline-styles": 1,
"react-native/no-raw-text": 2,
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 1
}
}
]
}