-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
49 lines (49 loc) · 1.23 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
module.exports = {
"env": {
"es6": true,
"node": true,
"browser": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"prettier",
"flowtype"
],
"extends": [
"eslint:recommended",
"airbnb",
"plugin:react/recommended",
"prettier",
"prettier/flowtype",
"prettier/react"
],
"globals": {
"__DEV__": true,
},
"rules": {
"prettier/prettier": ["error", { printWidth: 110, singleQuote: true }],
"no-invalid-this": "off",
"no-return-assign": "off",
"no-param-reassign": "off",
"no-nested-ternary": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
"react/prop-types": [2, { ignore: ["style", "children", "dispatch"] } ],
"import/order": ["error", {"newlines-between": "always"}],
"import/prefer-default-export": "off",
"import/no-unresolved": "error",
"import/extensions": ["error", { js: "never" }],
"import/named": "error",
"import/default": "error",
"import/namespace": "error",
"import/no-absolute-path": "error"
}
};