-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
54 lines (53 loc) · 1.59 KB
/
.eslintrc.cjs
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
// prettier-ignore
module.exports = {
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "next/core-web-vitals", "prettier"],
"root": true,
"ignorePatterns": ["build/", "node_modules/"],
"env": {
"browser": true,
"es2017": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"plugins": ["@typescript-eslint"],
"rules": {
"comma-style": ["warn", "last"],
"dot-notation": "warn",
"eqeqeq": ["error", "always"],
"func-call-spacing": ["warn", "never"],
"lines-between-class-members": ["warn", "always", { "exceptAfterSingleLine": true }],
"no-cond-assign": ["error", "always"],
"no-console": "off",
"no-multi-spaces": "warn",
"no-prototype-builtins": "off",
"no-shadow": "off",
"no-trailing-spaces": "warn",
"no-var": "error",
"padded-blocks": ["warn", "never"],
"prefer-const": "warn",
"prefer-rest-params": "warn",
"space-infix-ops": "error",
"spaced-comment": ["warn", "always", {
"line": {
"markers": ["/"]
},
"block": {
"balanced": true
}
}],
"yoda": ["warn", "never"],
"react/no-unescaped-entities": "off",
"@next/next/no-img-element": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"@typescript-eslint/no-var-requires": "off",
}
}