-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc
53 lines (49 loc) · 1.3 KB
/
.eslintrc
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
{
# Install related eslint pkgs as dev dependency first
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
# "plugin:react/recommended"
],
"globals": {
# For unit test
"it": true,
"describe": true,
# Fro Structure-View
"atom": true
},
"env": {
"browser": true,
"node": true,
"es6": true
},
# Error level:
# 0: no error
# 1: warning
# 2: error
"rules": {
"strict": "off",
"no-empty": [0],
"no-console": [0],
"no-case-declarations": [1],
"no-unused-vars": [1, { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
"no-redeclare": [2, {"builtinGlobals": true}],
# "react/no-find-dom-node": [0],
# "react/display-name": [0],
# "react/prop-types": [0],
# "react/require-default-props": [0],
# "react/forbid-prop-types": [0],
# "react/no-array-index-key": [0],
# "react/jsx-indent": [1],
# "react/jsx-indent-props": [1],
# "react/jsx-tag-spacing": [1],
# "react/jsx-first-prop-new-line": [1],
# "react/jsx-max-props-per-line": [1],
# "react/jsx-closing-bracket-location": [1],
# "react/sort-comp": [1],
# "react/jsx-wrap-multilines": [1],
# "react/self-closing-comp": [1],
# "react/jsx-curly-spacing": [1],
# "react/no-did-mount-set-state": [1]
}
}