This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
/
.eslintrc
103 lines (103 loc) · 3.08 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"root": true,
"parser": "babel-eslint",
"plugins": ["babel", "react"],
"parserOptions": {
"sourceType": "module"
},
"extends": [
"plugin:react/recommended"
],
"env": {
"browser": true
},
"globals": {
},
"rules": {
"array-bracket-spacing": [2, "never"],
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": [2, {"before": true, "after": true}],
"block-scoped-var": 2,
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"camelcase": [2, {"properties": "never"}],
"comma-dangle": [2, "only-multiline"],
"comma-spacing": 2,
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "self"],
"constructor-super": 2,
"curly": [2, "all"],
"eol-last": 2,
"eqeqeq": 2,
"indent": [2, 2, {"SwitchCase": 1}],
"jsx-quotes": ["error", "prefer-double"],
"keyword-spacing": [2, {"before": true, "after": true}],
"linebreak-style": [2, "unix"],
"max-nested-callbacks": [2, 2],
"new-cap": 0,
"no-alert": 2,
"no-cond-assign": [2, "except-parens"],
"no-confusing-arrow": 2,
"no-console": 2,
"no-debugger": 2,
"no-dupe-keys": 2,
"no-empty": 2,
"no-eq-null": 2,
"no-extra-semi": 2,
"no-inline-comments": 2,
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-spaces": 0,
"no-multiple-empty-lines": [2, {"max": 2}],
"no-nested-ternary": 2,
"no-obj-calls": 2,
"no-param-reassign": 0,
"no-plusplus": 2,
"no-self-compare": 2,
"no-shadow": 2,
"no-spaced-func": 2,
"no-throw-literal": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-underscore-dangle": 0,
"no-unused-vars": 2,
"no-void": 2,
"object-curly-spacing": [2, "never"],
"one-var": [2, "never"],
"prefer-rest-params": 2,
"prefer-spread": 2,
"quote-props": [2, "as-needed"],
"quotes": [2, "double", "avoid-escape"],
"react/jsx-boolean-value": [2, "never"],
"react/jsx-closing-bracket-location": 2,
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-filename-extension": [2, {"extensions": [".jsx"]}],
"react/jsx-handler-names": 2,
"react/jsx-indent": [2, 2],
"react/jsx-key": 2,
"react/jsx-no-duplicate-props": [1, {"ignoreCase": true}],
"react/jsx-pascal-case": 2,
"react/jsx-space-before-closing": 2,
"react/jsx-uses-react": 1,
"react/jsx-wrap-multilines": 2,
"react/no-danger": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-direct-mutation-state": 2,
"react/no-is-mounted": 2,
"react/no-unknown-property": 2,
"react/prefer-es6-class": 2,
"react/require-render-return": 2,
"react/self-closing-comp": [2, {"component": true, "html": true}],
"react/sort-comp": 2,
"react/sort-prop-types": 2,
"semi": [2, "always"],
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"spaced-comment": [2, "always"],
"template-curly-spacing": [2, "never"]
}
}