-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
41 lines (41 loc) · 1.21 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
module.exports = {
"parser": "babel-eslint",
"extends": ["airbnb", "prettier", "prettier/react", "react-app", "plugin:prettier/recommended"],
"plugins": ["prettier"],
"env": {
"es6": true
},
"rules": {
"prettier/prettier": ["error"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-wrap-multilines": 0,
"react/jsx-one-expression-per-line": 0,
// https://github.com/yannickcr/eslint-plugin-react/issues/1593
"react/default-props-match-prop-types": 0,
"jsx-a11y/label-has-for": 0,
"filenames/match-exported": 0,
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to", "hrefLeft", "hrefRight" ],
"aspects": [ "noHref", "invalidHref", "preferButton" ]
}]
},
"settings": {
"import/core-modules": ['prop-types']
},
"overrides": [
{
"files": [ "src/render/**", "stories.js", "test.js", "fixtures.js", "**.test.js", "src/stories/**" ],
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
}
},
{
"files": [ "test.js", "**.test.js" ],
"env": {
"jest": true,
"browser": true
}
}
]
}