-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
109 lines (109 loc) · 3.14 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"extends": [
"eslint:all",
"plugin:react/all",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:@next/next/recommended"
],
"env": {
"browser": true,
"es2020": true,
"node": true,
"jest": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["no-autofix"],
"rules": {
"indent": ["error", 2],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"max-len": 0,
"require-await": 0,
"no-extra-parens": 0,
"brace-style": ["error", "stroustrup"],
"array-element-newline": 0,
"dot-location": ["error", "property"],
"sort-keys": 0,
"id-length": 0,
"prefer-const": "off",
"no-autofix/prefer-const": "error",
"class-methods-use-this": 0,
"comma-dangle": ["error", {
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "never"
}],
"no-console": ["error", { "allow": ["warn", "error", "info", "time", "timeEnd", "timeStamp"] }],
"capitalized-comments": 0,
"no-undef-init": 0,
"no-undefined": 0,
"max-statements": 0,
"multiline-ternary": ["error", "always-multiline"],
"no-ternary": 0,
"max-lines": 0,
"max-lines-per-function": 0,
"multiline-comment-style": 0,
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"function-call-argument-newline": 0,
"padded-blocks": 0,
"no-warning-comments": 0,
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*"},
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]}
],
"sort-imports": 0,
"object-curly-spacing": ["error", "always"],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"object-curly-newline": ["error", {
"ObjectPattern": { "multiline": true }
}],
"one-var": ["error", "never"],
"quote-props": 0,
"no-magic-numbers": 0,
"func-style": 0,
"max-params": 0,
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-filename-extension": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-no-literals": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-max-depth": 0,
"react/forbid-prop-types": 0,
"react/function-component-definition": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-max-props-per-line": [2, { "maximum": 4 }],
"react/no-danger": 0,
"react/jsx-newline": 0,
"react/jsx-no-bind": 0,
"react/display-name": 0,
"react/require-optimization": 0,
"@next/next/no-img-element": 0
},
"ignorePatterns": ["node_modules/", ".next/", "public/", "build/", "introduction-to-algorithms/"],
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"alias": [
["@/components", "./components"],
["@/lib", "./lib"]
]
}
}
}