forked from JesperLekland/react-native-svg-charts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
52 lines (52 loc) · 1.46 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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"react",
"react-native"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"classes": true,
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"globals": {
"Promise": true,
"__DEV__": true
},
"env": {
"jasmine": true,
"node": true,
"browser": true
},
"rules": {
"no-multiple-empty-lines": ["error", { "max": 1 }],
"react/prop-types": [0],
"indent": ["error", 4, { "SwitchCase": 1 }],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "always", {
"objectsInArrays": false,
"arraysInArrays": false
}],
"comma-dangle": ["error", "always-multiline"],
"no-console": "off",
"semi": ["error", "never"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"eol-last": ["error", "always"],
"react/display-name": 0,
"no-unexpected-multiline": "off",
"max-len": ["error", 120, { "ignoreStrings": true, "ignoreTemplateLiterals": true }],
"space-infix-ops": "error",
"react/jsx-curly-spacing": [2, {"when": "always", "spacing": {
"objectLiterals": "never"
}}]
}
}