-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
89 lines (89 loc) · 2.01 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"sourceType": "module",
"allowImportExportEverywhere": true
}
},
"plugins": [
"flowtype",
"flowtype-errors",
"import",
"promise",
"compat",
"react",
"jest"
],
"rules": {
"arrow-body-style": "off",
"arrow-parens": [
"warn",
"as-needed"
],
"block-spacing": "warn",
"class-methods-use-this": "off",
"comma-dangle": "off",
"comma-spacing": "warn",
"consistent-return": "off",
"dot-notation": "warn",
"eol-last": "warn",
"function-paren-newline": "off",
"indent": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": "off",
"no-console": [
"warn",
{
"allow": [
"warn",
"error"
]
}
],
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "warn",
"keyword-spacing": "warn",
"no-empty": "warn",
"no-multi-spaces": "warn",
"no-nested-ternary": "warn",
"no-tabs": "off",
"no-trailing-spaces": "off",
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"object-curly-spacing": "warn",
"object-curly-newline": "off",
"object-property-newline": "warn",
"padded-blocks": "off",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"quotes": "warn",
"react/jsx-filename-extension": [
"warn",
{
"extensions": [
".js",
".jsx"
]
}
],
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/jsx-closing-bracket-location": "off",
"react/no-unused-prop-types": "warn",
"react/prefer-stateless-function": "warn",
"react/prop-types": "warn",
"react/require-default-props": "warn",
"semi": "warn",
"space-before-blocks": "warn"
}
}