This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
125 lines (125 loc) · 3.62 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"node": true,
"browser": true,
"es6": true,
"mocha": true
},
"plugins": [
"react"
],
"globals": {
"rootRequire": true,
"rootDir": true
},
"rules": {
"react/display-name": 0,
"react/jsx-boolean-value": 1,
"react/jsx-no-undef": 1,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 0,
"react/no-unknown-property": 1,
"react/prop-types": 0,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"no-compare-neg-zero": 2,
"no-cond-assign": [2, "always"],
"no-constant-condition": [2, { "checkLoops": false }],
"no-debugger": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": 2,
"no-extra-semi": 2,
"no-obj-calls": 2,
"no-sparse-arrays": 2,
"no-unreachable": 2,
"no-unsafe-negation": 2,
"curly": [2, "all"],
"dot-location": [2, "property"],
"dot-notation": [2, { "allowKeywords": true }],
"eqeqeq": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-loop-func": 2,
"no-multi-spaces": [2, { "ignoreEOLComments": true, "exceptions": { "Property": false } }],
"no-new": 2,
"no-new-func": 2,
"no-octal": 2,
"no-redeclare": 2,
"no-return-assign": [2, "always"],
"no-self-assign": [2, { "props": false }],
"no-self-compare": 2,
"no-throw-literal": 2,
"no-unused-labels": 2,
"no-useless-call": 0,
"no-useless-escape": 2,
"no-void": 2,
"no-with": 2,
"wrap-iife": [2, "inside"],
"strict": [2, "never"],
"no-undef": 2,
"no-unused-vars": 2,
"no-use-before-define": 2,
"block-spacing": [2, "always"],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-style": [2, "last"],
"func-call-spacing": [2, "never"],
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": [2, { "after": true, "before": true }],
"lines-between-class-members": [2, "always"],
"max-len": [2, { "code": 80, "ignoreComments": true }],
"new-cap": [2, {"capIsNewExceptions": ["Deferred"]}],
"no-bitwise": 2,
"no-multi-assign": 2,
"no-nested-ternary": 2,
"no-whitespace-before-property": 2,
"object-curly-spacing": [2, "always"],
"operator-linebreak": [2, "after"],
"quotes": [2, "single", "avoid-escape"],
"quote-props": [1, "consistent-as-needed"],
"semi": [2, "always"],
"semi-spacing": ["error", {"before": false, "after": true}],
"semi-style": [2, "last"],
"space-before-blocks": 2,
"space-before-function-paren": [2, {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-infix-ops": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"switch-colon-spacing": 2,
"wrap-regex": 2,
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": 2,
"generator-star-spacing": [2, "after"],
"no-class-assign": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-duplicate-imports": 2,
"no-this-before-super": 2,
"no-useless-constructor": 2,
"no-useless-rename": 2,
"no-var": 2,
"object-shorthand": [2, "always"],
"prefer-rest-params": 2,
"prefer-spread": 2,
"require-yield": 2,
"rest-spread-spacing": [2, "never"]
}
}