-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
51 lines (45 loc) · 1.18 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
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"],
root: true,
rules: {
"@typescript-eslint/no-unused-vars": "off",
endOfLine: "off",
"no-console": ["warn", { allow: ["warn", "error"] }],
"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: "^_",
},
],
"vue/padding-line-between-tags": [
"error",
[{ blankLine: "always", next: "*", prev: "*" }],
],
},
};