-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
45 lines (45 loc) · 1.56 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
{
"extends": [
"airbnb"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"jest": true
},
"rules": {
"operator-linebreak": 0,
"camelcase": 0,
"react/prop-types": 0,
"react/no-unused-state": 0,
"react/jsx-filename-extension": 0,
// TODO: Consider using stateless functional components where relevant
// https://hackernoon.com/react-stateless-functional-components-nine-wins-you-might-have-overlooked-997b0d933dbc
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md
"react/prefer-stateless-function": 0,
"react/no-multi-comp": 0,
"import/no-dynamic-require": 0,
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
"semi": ["error", "never"],
"no-multi-spaces": ["error", { "exceptions": { "ImportDeclaration": true } }],
"padded-blocks": ["error", { "classes": "always" }],
"no-underscore-dangle": 0,
"no-param-reassign": 0,
"no-shadow": 0,
"max-len": 0,
"global-require": 0,
"no-unneeded-ternary": 0,
"quote-props": 0,
"no-console": [1, { allow: ["warn", "error"] }],
"no-use-before-define": ["error", { "functions": false }],
"object-curly-newline": ["error", { "consistent": true }],
"no-nested-ternary": 0,
}
}