-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (31 loc) · 947 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
module.exports = {
"extends": ["airbnb", "plugin:react/recommended"],
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"plugins": [
"react"
],
"rules": {
"linebreak-style": 0,
"arrow-parens": 0,
"global-require": 0,
"no-alert": 0,
"no-console": 0,
"import/no-unresolved": 1,
"react/forbid-prop-types" : 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/react-in-jsx-scope": "off",
"react/no-access-state-in-setstate": 'error',
"react/display-name": "off",
"react/jsx-max-props-per-line": ["error", { "maximum": 1, "when": "multiline" }],
"import/no-extraneous-dependencies": 0,
"react/prop-types": 1,
"object-curly-newline": 0,
"class-methods-use-this": 0,
"react/prefer-stateless-function": 0,
"react/prop-types": ["error", { "ignore": ["navigation"] }],
}
}