This repository has been archived by the owner on May 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
56 lines (52 loc) · 1.42 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
{
"extends": ["react-app", "airbnb", "prettier", "prettier/react"],
"plugins": ["prettier"],
"rules": {
"camelcase": 0,
"func-names": 0,
"no-plusplus": 0,
"no-undef": 0,
"no-underscore-dangle": 0,
"no-unused-vars": 0,
"import/imports-first": ["error", "absolute-first"],
"import/newline-after-import": "error",
// Gets in the way of the absolute imports
"import/no-unresolved": 0,
//--
"react/jsx-filename-extension": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-tag-spacing": [
1,
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}
],
"react/prop-types": 0,
/* "expression" or "declaration"
Choose your own or delete to disable */
"func-style": ["error", "expression"],
// Prettier does this
//"indent": ["error", 2],
//"quotes": ["error", "single"]
// dangerouslySetInnerHTML is important for some projects
"react/no-danger": 0,
// react-use-form-state {...label} takes care of this
"jsx-a11y/control-has-associated-label": 0,
"jsx-a11y/label-has-associated-control": 0,
"jsx-a11y/label-has-for": 0
//--
},
"globals": {
"window": true,
"document": true,
"localStorage": true,
"FormData": true,
"FileReader": true,
"Blob": true,
"navigator": true
},
"parser": "babel-eslint"
}