-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
64 lines (64 loc) · 1.69 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
63
64
{
"extends": ["airbnb", "prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["prettier"],
"env": {
"es6": true,
"node": true,
"browser": true
},
"rules": {
"arrow-parens": "off",
"object-curly-spacing": ["warn", "never"],
"max-len": ["error", 120, 4],
"no-confusing-arrow": "warn",
"global-require": "off",
"no-underscore-dangle": "off",
"no-await-in-loop": "off",
"no-plusplus": "off",
"no-return-assign": "off",
"class-methods-use-this": "off",
"prefer-promise-reject-errors": "off",
"no-continue": "off",
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"import/prefer-default-export": "off",
"react/jsx-filename-extension": "off",
"react/prop-types": "off",
"react/sort-comp": "off",
"react/jsx-closing-bracket-location": "off",
"react/no-unescaped-entities": "warn",
"react/prefer-stateless-function": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-closing-tag-location": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"bracketSpacing": false,
"jsxBracketSameLine": true,
"printWidth": 120
}
]
}
}