This repository has been archived by the owner on Feb 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
56 lines (56 loc) · 1.46 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
module.exports = {
parser: "babel-eslint",
extends: ["airbnb", "react-tools"],
plugins: ["flowtype"],
globals: {},
env: {
browser: true,
es6: true,
jest: true,
node: true
},
rules: {
"function-paren-newline": 0,
"no-console": ["error", { allow: ["warn", "error"] }],
semi: [2, "never"],
"linebreak-style": 0,
"no-underscore-dangle": 0,
"no-duplicate-imports": 0,
"object-curly-newline": 0,
"react/jsx-filename-extension": 0,
"react/sort-comp": 0,
"max-len": 0,
"import/no-named-as-default": 0,
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
"flowtype/define-flow-type": 1,
"flowtype/use-flow-type": 1,
"react/no-array-index-key": 0,
"react/no-unused-prop-types": 0,
"react/require-default-props": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/iframe-has-title": 0,
"jsx-a11y/media-has-caption": 0,
"jsx-a11y/mouse-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"no-mixed-operators": [
"error",
{
groups: [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
allowSamePrecedence: true
}
]
},
settings: {
"import/resolver": {
webpack: {
config: "eslint-webpack-config.js"
}
}
}
};