-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
50 lines (49 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
const path = require('path');
module.exports = {
"root": true,
"extends": [
"airbnb"
],
"env": {
"browser": true
},
"parser": "babel-eslint",
"settings": {
"import/resolver": {
"webpack": {
"config": path.resolve(__dirname, '.storybook', 'webpack.config.js')
}
}
},
"rules": {
"react/no-find-dom-node": "off",
"jsx-quotes": ["error", "prefer-single"],
"react/jsx-filename-extension": ["error", { "extensions": [".jsx", ".js"] }],
"no-plusplus": "off",
"no-continue": "off",
"no-case-declarations": "off",
"jsx-a11y/label-has-for": 0,
"jsx-a11y/label-has-associated-control": 0,
"import/prefer-default-export": "off",
"no-console": "off",
"react/no-danger": "off",
"react/forbid-prop-types": "off",
"import/no-extraneous-dependencies": "off",
"no-nested-ternary": "off",
"object-curly-newline": ["error", {
"ExportDeclaration": { "multiline": true, "minProperties": 6, "consistent": true }
}],
"no-param-reassign": ["error", { "props": false }],
"jsx-a11y/accessible-emoji": 0,
"react/no-array-index-key": 0,
"max-len": ["error", 120, 2, {
'ignoreUrls': true,
'ignoreComments': false
}],
"import/no-webpack-loader-syntax": 0,
"react/jsx-props-no-spreading": 0,
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
"react/static-property-placement": [0],
"react/state-in-constructor": [0, 'never']
}
};