-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
62 lines (62 loc) · 1.62 KB
/
.eslintrc
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
51
52
53
54
55
56
57
58
59
60
61
62
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/recommended",
"prettier",
"airbnb"
],
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"plugins": ["react", "import", "prettier"],
"rules": {
"no-undef": "warn",
"no-console": "off",
"operator-linebreak": ["warn", "after"],
"no-use-before-define": ["warn", "nofunc"],
"no-param-reassign": "warn",
"no-confusing-arrow": ["warn", { "allowParens": true }],
"semi": "off",
"comma-dangle": "off",
"object-curly-newline": ["off"],
"object-curly-spacing": ["warn", "always"],
"implicit-arrow-linebreak": "warn",
"function-paren-newline": "warn",
"arrow-body-style": "off",
"arrow-parens": ["warn", "as-needed"],
"no-underscore-dangle": "off",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"import/prefer-default-export": "warn",
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/destructuring-assignment": "warn",
"react/prop-types": "warn",
"react/require-default-props": "warn",
"react/forbid-prop-types": "warn",
"react/prefer-stateless-function": "warn",
"prettier/prettier": ["warn"],
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": [
"warn",
{
"assert": "both"
}
]
}
}