-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
44 lines (41 loc) · 1.11 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
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",
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
"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: "^_" },
],
},
};