-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
41 lines (41 loc) · 940 Bytes
/
.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
module.exports = {
plugins: ["react"],
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
ecmaFeatures: {
jsx: true
}
},
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
mocha: true
},
extends: ["eslint:recommended", "plugin:react/all"],
parserOptions: {
sourceType: "module"
},
rules: {
"react/jsx-indent": ["warn", 2],
"react/jsx-no-literals": "off",
"react/no-set-state": "off",
"react/jsx-max-props-per-line": ["error", { "maximum": 3 }],
"react/no-unused-prop-types": "off",
"react/require-optimization": "off",
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": "off",
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "never"],
"no-unused-vars": ["warn"],
"no-console": 0
},
globals: {
"sinon": true,
"expect": true,
"proxyquire": true
}
};