-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
61 lines (61 loc) · 1.28 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
{
"root": true,
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["react", "import", "prettier"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": true,
"peerDependencies": true
}
],
"prettier/prettier": [
2,
{
"useTabs": false,
"printWidth": 120,
"tabWidth": 2,
"singleQuote": true,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"semi": false
}
],
"semi": ["error", "never"],
"comma-dangle": ["error", "never"],
"quotes": [1, "single", "avoid-escape"],
"prefer-destructuring": [
"error",
{
"object": true,
"array": false
}
],
"react/prefer-es6-class": [0, "always"],
"react/prefer-stateless-function": [
0,
{
"ignorePureComponents": true
}
],
"react/jsx-filename-extension": 0,
"react/jsx-no-bind": [
2,
{
"ignoreRefs": false,
"allowArrowFunctions": false,
"allowBind": false
}
],
"jsx-a11y/href-no-hash": "off"
}
}