-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc
95 lines (95 loc) · 2.87 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"react"
],
"rules": {
"array-bracket-spacing": [ 2, "always" ],
"arrow-spacing": 2,
"block-spacing": [ 2, "always" ],
"brace-style": [ 2, "allman" ],
"camelcase": 2,
"comma-dangle": 2,
"comma-style": 2,
"comma-spacing": [ 2, { "before": false, "after": true } ],
"computed-property-spacing": [ 2, "always" ],
"consistent-this": [ 2, "self" ],
"constructor-super": 2,
"eol-last": 2,
"func-call-spacing": 2,
"func-style": [ 2, "declaration", { "allowArrowFunctions": true } ],
"indent": 2,
"jsx-quotes": 2,
"key-spacing": [ 2, {
"beforeColon": true,
"afterColon": true,
"mode": "minimum",
"align": "colon"
}
],
"keyword-spacing": [ 2, { "before": true, "after": true } ],
"linebreak-style": [ 2, "unix" ],
"max-len": [ 2, { "ignoreUrls": true } ],
"max-statements": [ 2, 60 ],
"new-cap": 2,
"new-parens": 2,
"newline-before-return": 2,
"no-console": [ 2, { allow: [ "warn", "error" ] } ],
"no-const-assign": 2,
"no-else-return": 2,
"no-extra-parens": 2,
"no-extra-semi": 2,
"no-find-dom-node": 0,
"no-lonely-if": 2,
"no-this-before-super": 2,
"no-trailing-spaces": 2,
"no-underscore-dangle": 2,
"no-unneeded-ternary": 2,
"no-useless-rename": 2,
"no-var": 2,
"no-whitespace-before-property": 2,
"object-curly-newline": [ 2, {
"ObjectExpression": {
"multiline": true,
"minProperties": 1
},
"ObjectPattern": { "multiline": true }
} ],
"object-curly-spacing": [ 2, "always" ],
"object-property-newline": 2,
"one-var": [ 2, "never" ],
"prefer-arrow-callback": 2,
"prefer-const": [ 2, {
"destructuring": "any",
"ignoreReadBeforeAssign": false
} ],
"prefer-template": 2,
"quotes": [ 2, "single" ],
"require-jsdoc": [ 2, {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,