UNPKG

971 BPlain TextView Raw
1{
2 "extends": ["airbnb"],
3 "parser": "babel-eslint",
4 "env": {
5 "es6": true,
6 "browser": true,
7 "node": true
8 },
9 "plugins": ["react"],
10 "rules": {
11 "react/destructuring-assignment": "off",
12 "react/no-unused-prop-types": "off", // We dynamically create event handlers and we verify them as function prop types, eslint does not detect them so turning this off
13 "no-param-reassign": "off",
14 "react/jsx-filename-extension": "off",
15 "react/require-default-props": "off",
16 "no-prototype-builtins": "off",
17 "jsx-a11y/label-has-associated-control": [
18 2,
19 {
20 "assert": "either",
21 "controlComponents": ["Form.Field"],
22 "depth": 3
23 }
24 ],
25 "jsx-a11y/label-has-for": "off",
26 "max-len": "off",
27 "object-curly-newline": "off",
28 "jsx-a11y/anchor-is-valid": [
29 1,
30 {
31 "aspects": ["invalidHref", "preferButton"]
32 }
33 ],
34 "react/button-has-type": "off",
35 "react/jsx-one-expression-per-line": [
36 1,
37 {
38 "allow": "single-child"
39 }
40 ]
41 }
42}