-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
74 lines (69 loc) · 1.88 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"rules": {
"comma-style": ["error", "last"],
"curly": ["error"],
"max-len": ["error", { "code": 80, "tabWidth": 2 }],
"new-cap": ["error"],
"no-alert": ["warn"],
"no-caller": ["error"],
"no-console": ["off"],
"no-debugger": ["error"],
"no-undef": ["error"],
"no-unused-vars": ["error", { "vars": "all", "args": "after-used" }],
"no-use-before-define": ["error", { "functions": false, "classes": true }],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"guard-for-in": ["error"],
"valid-jsdoc": ["error",
{
"prefer": {
"return": "return"
},
"preferType": {
"String": "string",
"Number": "number",
"Boolean": "boolean",
"object": "Object",
"array": "Array"
},
"requireReturn": false,
"requireParamDescription": false,
"requireReturnDescription": false
}
],
"eqeqeq": ["error"],
"no-case-declarations": ["error"],
"no-else-return": ["error"],
"no-extra-bind": ["error"],
"no-implicit-coercion": ["error", { "boolean": false }],
"no-multi-spaces": ["error"],
"no-throw-literal": ["error"],
"no-warning-comments": ["error", { "terms": ["todo", "@todo:", "fixme",
"xxx"] }],
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error"],
"no-var": ["error"],
"object-shorthand": ["error"],
"prefer-const": ["error"],
"prefer-template": ["error"]
},
"env": {
"es6": true,
"browser": true,
"worker": true
},
"plugins": [
"react"
],
"extends": ["eslint:recommended", "plugin:react/recommended"]
}