This repository has been archived by the owner on May 29, 2023. It is now read-only.
generated from blueambr/create-next-app-extended
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
69 lines (64 loc) · 1.91 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
{
"extends": ["next", "prettier"],
"plugins": ["prettier"],
"rules": {
"camelcase": 0,
"func-names": 0,
"no-console": ["warn", { "allow": ["error", "info", "warn"] }],
"no-plusplus": 0,
"no-return-assign": 0,
"no-undef": 0,
"no-underscore-dangle": 0,
"no-unused-vars": 0,
/**
* Can be "expression" or "declaration".
* Choose your own or delete to disable.
*/
"func-style": ["error", "expression"],
// Prettier does this too.
"indent": ["error", 2],
"quotes": ["error", "single"]
// Enable, if needed.
// "import/extensions": 0, // Gets in the way of the absolute imports
// "import/imports-first": ["error", "absolute-first"],
// "import/newline-after-import": "error",
// "import/no-absolute-path": 0, // Gets in the way of the absolute imports
// "import/no-extraneous-dependencies": 0,
// "import/no-unresolved": 0, // Gets in the way of the absolute imports
// "react/jsx-filename-extension": 0,
// "react/jsx-props-no-spreading": 0,
// "react/jsx-tag-spacing": [
// 1,
// {
// "afterOpening": "never",
// "beforeClosing": "never",
// "beforeSelfClosing": "always",
// "closingSlash": "never"
// }
// ],
// "react/no-danger": 0, // dangerouslySetInnerHTML is important in some situations
// "react/prop-types": 0,
/**
* Enable, if needed.
* 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,
/**
* Enable, if needed.
* We use Next.js.
*/
// "jsx-a11y/anchor-is-valid": 0,
// "react/react-in-jsx-scope": 0,
},
"globals": {
"Blob": true,
"FileReader": true,
"FormData": true,
"document": true,
"localStorage": true,
"navigator": true,
"window": true
}
}