-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
83 lines (83 loc) · 2.92 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
72
73
74
75
76
77
78
79
80
81
82
83
{
"extends": "next/core-web-vitals",
"rules": {
"array-callback-return": [ "warn" ],
"arrow-spacing": [ "error", { "before": true, "after": true } ],
"camelcase": [ "warn" ],
"class-methods-use-this": [ "warn" ],
"comma-dangle": [ "error", "never" ],
"consistent-return": [ "warn" ],
"default-case": [ "warn" ],
"eol-last": [ "error", "always" ],
"global-require": [ "warn" ],
"guard-for-in": [ "warn" ],
"import/extensions": [ "warn" ],
"import/no-cycle": [ "warn" ],
"import/no-extraneous-dependencies": [ "warn" ],
"import/no-named-as-default": [ "warn" ],
"import/prefer-default-export": [ "warn" ],
"indent": [ "error", 2, { "SwitchCase": 1 } ],
"jsx-a11y/media-has-caption": [ "off" ],
"max-len": [ "error", {
"code": 120,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"no-await-in-loop": [ "off" ],
"no-case-declarations": [ "warn" ],
"no-console": [ "warn", { "allow": ["error"] } ],
"no-continue": [ "warn" ],
"no-dupe-keys": [ "warn" ],
"no-duplicate-imports": ["error", { "includeExports": true }],
"no-empty": [ "warn" ],
"no-fallthrough": [ "warn" ],
"no-lone-blocks": [ "warn" ],
"no-multi-assign": [ "warn" ],
"no-multi-spaces": [ "error" ],
"no-nested-ternary": [ "warn" ],
"no-param-reassign": [ "off" ],
"no-plusplus": [ "off" ],
"no-prototype-builtins": [ "warn" ],
"no-redeclare": [ "warn" ],
"no-restricted-syntax": [ "off" ],
"no-return-assign": [ "off" ],
"no-return-await": [ "warn" ],
"no-shadow": [ "warn" ],
"no-trailing-spaces": [ "error" ],
"no-unused-vars": [ "warn" ],
"no-use-before-define": [ "warn" ],
"no-useless-constructor": [ "warn" ],
"no-useless-escape": [ "warn" ],
"no-undef": [ "warn" ],
"no-unused-expressions": [ "warn" ],
"prefer-const": [ "warn" ],
"prefer-destructuring": [ "warn" ],
"prefer-promise-reject-errors": [ "off" ],
"quotes": [ "error", "single" ],
"radix": [ "warn" ],
"react/destructuring-assignment": [ "warn" ],
"react/forbid-prop-types": [ "off" ],
"react/jsx-filename-extension": [ "off" ],
"react/jsx-no-bind": ["warn", {
"ignoreDOMComponents": false,
"ignoreRefs": false,
"allowArrowFunctions": true,
"allowFunctions": true,
"allowBind": false
}],
"react/jsx-props-no-spreading": [ "off" ],
"react/no-access-state-in-setstate": [ "warn" ],
"react/no-array-index-key": [ "warn" ],
"react/jsx-no-duplicate-props": [ "warn" ],
"react/no-unescaped-entities": [ "warn" ],
"react/no-unused-prop-types": [ "warn" ],
"react/no-unused-state": [ "warn" ],
"react/require-default-props": [ "off" ],
"react/sort-comp": [ "warn" ],
"react/state-in-constructor": [ "off" ],
"semi": [ "error", "always" ],
"space-infix-ops": [ "error" ],
"use-isnan": [ "warn" ]
}
}