-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
70 lines (70 loc) · 2.02 KB
/
.eslintrc.json
File metadata and controls
70 lines (70 loc) · 2.02 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
68
69
70
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "airbnb",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.js"
}
}
},
"rules": {
"react/jsx-uses-vars": ["error"],
"jsx-a11y/no-static-element-interactions": "off",
"comma-dangle": "off",
"no-console": "off",
"object-shorthand": "off",
"quotes": "off",
"react/jsx-curly-spacing": ["error", "always"],
"no-underscore-dangle": ["error", { "allow": ["_id", "_source"] }],
"keyword-spacing": ["warn"],
"react/forbid-prop-types": "off",
"no-param-reassign": ["error", { "props": false }],
"generator-star-spacing": ["error", {"before": true, "after": false}],
"max-len": ["error", 120],
"no-trailing-spaces": ["warn"],
"no-plusplus": "off",
"camelcase": "off",
"arrow-body-style": "off",
"indent": [
"error",
2
],
"linebreak-style": "off",
"no-restricted-properties": ["error", {
"object": "arguments",
"property": "callee",
"message": "arguments.callee is deprecated"
},
{
"property": "__defineGetter__",
"message": "Please use Object.defineProperty instead."
},
{
"property": "__defineSetter__",
"message": "Please use Object.defineProperty instead."
}
],
"semi": [
"error",
"always"
],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": "off"
},
"globals": {
"DataStore": true
}
}