forked from wojtekmaj/react-pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
34 lines (34 loc) · 945 Bytes
/
.eslintrc.json
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
{
"extends": "airbnb",
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parser": "babel-eslint",
"rules": {
"jsx-a11y/label-has-associated-control": ["error", { "required": { "some": ["id", "nesting"] }}],
"jsx-a11y/label-has-for": ["error", { "required": { "some": ["id", "nesting"] }}],
"no-param-reassign": ["error", { "props": true, "ignorePropertyModificationsFor": ["canvas", "element", "svg"] }],
"no-underscore-dangle": ["error", { "allow": ["_pdfInfo", "_pageInfo"] }],
"prefer-destructuring": "warn",
"prefer-spread": "warn",
"react/jsx-sort-props": ["error", {
"reservedFirst": ["key"]
}],
"react/require-default-props": "off",
"react/sort-comp": "off",
"react/sort-prop-types": "error"
},
"overrides": [
{
"files": [
"sample/**",
"test/**"
],
"rules": {
"import/no-unresolved": "off"
}
}
]
}