-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
77 lines (70 loc) · 1.75 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module.exports = {
env: {
browser: true,
node: true,
},
extends: [
"@nuxtjs/eslint-config-typescript",
"plugin:prettier/recommended",
"eslint-config-prettier",
],
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
},
plugins: ["unused-imports", "sort-keys-custom-order", "@stylistic/js"],
root: true,
rules: {
"@stylistic/js/comma-dangle": ["error", "always-multiline"],
"@stylistic/js/padding-line-between-statements": [
"error",
{
blankLine: "always",
next: "return",
prev: "*",
},
{
blankLine: "always",
next: "*",
prev: ["const", "let", "var"],
},
{
blankLine: "any",
next: ["const", "let", "var"],
prev: ["const", "let", "var"],
},
],
"@typescript-eslint/no-unused-vars": "off",
endOfLine: "off",
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"sort-keys-custom-order/object-keys": [
"error",
{ orderedKeys: ["id", "username", "name", "title", "50"] },
],
"sort-keys-custom-order/type-keys": [
"error",
{ orderedKeys: ["id", "username", "name", "title", "50"] },
],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
args: "after-used",
argsIgnorePattern: "^_",
vars: "all",
varsIgnorePattern: "^_",
},
],
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
"vue/padding-line-between-tags": [
"error",
[{ blankLine: "always", next: "*", prev: "*" }],
],
},
};