-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.31 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
module.exports = {
parser: "babel-eslint",
extends: [
"eslint:recommended",
"plugin:flowtype/recommended",
"plugin:react/all",
],
plugins: ["flowtype", "flowtype-errors", "react"],
env: {
browser: true,
es6: true,
},
rules: {
"flowtype-errors/show-errors": "error",
"react/jsx-filename-extension": "off",
"react/jsx-no-literals": "off",
"react/require-optimization": "warn",
"react/no-set-state": "off",
"react/no-multi-comp": "off",
"react/jsx-indent": ["error", 4],
"react/no-string-refs": "warn",
"react/forbid-component-props": "off",
"react/jsx-one-expression-per-line": "off",
"react/no-unused-prop-types": "off",
"react/jsx-sort-props": "off",
"react/jsx-no-bind": "off",
"no-console": "off",
"comma-dangle": [
"error",
{
arrays: "always-multiline",
objects: "always-multiline",
imports: "never",
exports: "never",
functions: "always-multiline",
},
],
},
settings: {
flowtype: {
onlyFilesWithFlowAnnotation: true,
},
},
globals: {
dat: true,
pc: true,
},
};