forked from woodenconsulting/react-js-diagrams
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
86 lines (85 loc) · 2.09 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
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
{
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"plugins": [
"react"
],
"globals": {
"require": true,
"$": true,
"module": true
},
"rules": {
"arrow-spacing": 2,
"consistent-return": 0,
"eol-last": 2,
"eqeqeq": 0,
"indent": [2, 2, { "SwitchCase": 1 }],
"keyword-spacing": 2,
"no-array-constructor": 2,
"no-const-assign": 2,
"no-console": 0,
"no-dupe-class-members": 2,
"no-extra-semi": 2,
"no-func-assign": 2,
"no-mixed-spaces-and-tabs": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-multi-spaces": 2,
"no-multiple-empty-lines": 2,
"no-underscore-dangle": 0,
"no-unused-vars": 2,
"no-unneeded-ternary": 2,
"no-useless-constructor": 2,
"object-shorthand": 2,
"prefer-const": 2,
"prefer-spread": 2,
"prefer-template": 2,
"quotes": [2, "single"],
"radix": 2,
"semi": [2, "always"],
"space-before-blocks": 2,
"space-infix-ops": [2, {"int32Hint": false}],
"strict": 0,
"template-curly-spacing": 2,
"object-curly-spacing": [2, "always"],
"space-in-parens": 2,
"padded-blocks": [2, {
"blocks": "never",
"classes": "never",
"switches": "never"}],
"max-len": [2, {
"code": 120,
"tabWidth": 2,
"ignoreComments": false,
"ignoreTrailingComments": false,
"ignoreStrings": false,
"ignoreRegExpLiterals": true,
"ignoreTemplateLiterals": false
}],
"prefer-rest-params": 2,
"no-param-reassign": 2,
"prefer-arrow-callback": 2,
// React
"jsx-quotes": [2, "prefer-double"],
"react/display-name": 0,
"react/jsx-boolean-value": 1,
"react/jsx-no-undef": 2,
"react/jsx-sort-prop-types": 0,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": [2, "allow-in-func"],
"react/no-did-update-set-state": 2,
"react/no-unknown-property": 2,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/wrap-multilines": 2
},
"ecmaFeatures": {
"jsx": true
}
}