-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
83 lines (81 loc) · 1.85 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
{
"parser": "babel-eslint",
"plugins": [
"import",
"react"
],
"settings": {
"react": {
"version": "15"
}
},
"env": {
"es6": true
},
"parserOptions": {
"sourceType": "module"
},
"globals": {
"__DEV__": true,
"window": true,
"document": true,
"console": true,
"setTimeout": true
},
"extends": [
// https://github.com/eslint/eslint/blob/master/conf/eslint-recommended.js
"eslint:recommended",
// https://www.npmjs.com/package/eslint-plugin-react#recommended
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"rules": {
"capitalized-comments": [
"error",
"always",
{
"line": {
"ignorePattern": ".",
"ignoreConsecutiveComments": true
},
"block": {
"ignoreInlineComments": true,
"ignorePattern": "ignored"
}
}
],
"no-alert": "error",
"no-caller": "error",
"no-console": 0,
"no-invalid-this": "error",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"no-param-reassign": "error",
"no-shadow": "error",
"no-use-before-define": [
"error",
{
"functions": false,
"classes": true
}
],
"no-useless-return": "error",
"no-with": "error",
"prefer-arrow-callback": "warn",
// don't force es6 functions to include space before paren
"space-before-function-paren": 0,
"import/order": [
"error",
{
"newlines-between": "always-and-inside-groups"
}
],
// DO NOT force a specific number of newlines after imports
"import/newline-after-import": 0,
"react/display-name": 0,
"react/no-children-prop": 0,
"react/prop-types": 0,
// allow specifying true explicitly for boolean props?
"react/jsx-boolean-value": 0
}
}