-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
69 lines (69 loc) · 1.52 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es2021: true,
amd: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
],
overrides: [],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react"],
rules: {
indent: [2, "tab"],
"no-tabs": 0,
"no-empty": "off",
"react/prop-types": 0,
allowEmptyReject: 0,
strict: ["error", "global"],
"func-style": ["error", "expression"],
"react/react-in-jsx-scope": "off",
"quotes": [2, "double", { "avoidEscape": true }],
"arrow-parens": ["error", "always"],
"prefer-const": "error",
"no-unused-vars": "off",
// "multiline-comment-style": ["error", "starred-block"],
"spaced-comment": ["error", "always"],
semi: ["error", "always"],
"semi-spacing": "error",
"no-extra-semi": "error",
"no-unexpected-multiline": "error",
"react/no-unknown-property": ["error", { ignore: ["jsx"] }],
"comma-dangle": ["error", "always-multiline"],
"space-infix-ops": "error",
"brace-style": "error",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
anonymous: "always",
named: "always",
asyncArrow: "always",
},
],
"newline-per-chained-call": "error",
"space-in-parens": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"comma-spacing": [
"error",
{
before: false,
after: true,
},
],
"no-multiple-empty-lines": [
"error",
{
max: 1,
maxEOF: 1,
},
],
},
};