-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
74 lines (74 loc) · 1.86 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
globals: {
jest: true,
describe: true,
it: true,
expect: true,
beforeEach: true,
DISQUS: true
},
extends: [
"eslint:all",
"plugin:react/all",
"plugin:flowtype/recommended",
"plugin:prettier/recommended"
],
parser: "babel-eslint",
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true
},
sourceType: "module"
},
plugins: ["react", "flowtype", "html"],
rules: {
"no-unused-vars": 1,
"linebreak-style": ["error", "unix"],
"react/jsx-uses-vars": 1,
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-max-props-per-line": [2, { maximum: 1 }],
"react/jsx-first-prop-new-line": 1,
"react/no-danger": 0,
"react/prefer-stateless-function": [1],
"react/no-will-update-set-state": 0,
"react/default-props-match-prop-types": 0,
"react/no-redundant-should-component-update": 0,
"react/jsx-wrap-multilines": 0,
"react/jsx-closing-tag-location": 0,
"react/jsx-filename-extension": 0,
"react/jsx-no-undef": [1, { allowGlobals: true }],
"react/prop-types": [0],
"react/forbid-component-props": [0],
"react/jsx-curly-brace-presence": [0],
"react/jsx-one-expression-per-line": [0],
"react/jsx-no-useless-fragment":[0],
"no-console": 1,
"no-empty-function": 0,
"no-inner-declarations": 1,
"no-invalid-this": 0,
"quote-props": 0,
"object-curly-newline": 0,
"dot-location": [1, "property"],
"sort-vars": 0,
"one-var": [1, "never"],
"new-cap": [1, { capIsNew: false }],
"class-methods-use-this": [
1,
{
exceptMethods: [
"render",
"componentDidMount",
"componentWillMount",
"componentWillReceiveProps"
]
}
]
}
}