-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
71 lines (71 loc) · 2.31 KB
/
.eslintrc.json
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
{
"extends": [
"next/core-web-vitals",
"airbnb",
"airbnb/hooks"
],
"rules": {
"no-console": "off",
"import/no-cycle": "off",
"no-underscore-dangle": "off",
"import/no-named-as-default": 0,
"no-case-declarations": "off",
"no-prototype-builtins": "off",
"no-nested-ternary": "off",
"guard-for-in": "off",
"no-plusplus": "off",
"prefer-destructuring": ["error", { "array": false }],
"radix": ["error", "as-needed"],
"camelcase": 0,
"linebreak-style": 0,
"max-len": ["error", { "code": 180 }],
"jsx-quotes": ["error", "prefer-single"],
"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/label-has-associated-control": "off",
"react/no-unstable-nested-components": "off",
"react/button-has-type": "off",
"react/require-default-props": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-closing-bracket-location": [2, "line-aligned"],
"react/jsx-pascal-case": [2, { "allowLeadingUnderscore": false }],
"react/jsx-filename-extension": "off",
"react/jsx-boolean-value": "error",
"react/jsx-curly-spacing": ["error", "never"],
"react/jsx-equals-spacing": ["error", "never"],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-undef": "error",
"react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always" }],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/self-closing-comp": "error",
"react/jsx-max-props-per-line": ["error", { "when": "multiline" }],
"react/jsx-first-prop-new-line": ["error"],
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/no-array-index-key": "off",
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "function-expression"
}
],
"array-callback-return": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"import/prefer-default-export": "off",
"no-param-reassign": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/no-unresolved": "off"
}
}