-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
36 lines (36 loc) · 990 Bytes
/
Copy path.eslintrc.cjs
File metadata and controls
36 lines (36 loc) · 990 Bytes
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
module.exports = {
root: true,
env: {
node: true,
es2020: true,
},
extends: [
"eslint:recommended",
"plugin:vue/recommended",
"@vue/typescript/recommended",
],
rules: {
"no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
vars: "all",
args: "after-used",
argsIgnorePattern: "^_",
ignoreRestSiblings: false,
},
],
"indent": ["warn", 2, { "SwitchCase": 1, "flatTernaryExpressions": true }],
"no-console": "off",
"no-debugger": "warn",
"vue/max-attributes-per-line": "off",
"vue/html-indent": ["warn", 2, { "alignAttributesVertically": false }],
"vue/singleline-html-element-content-newline": "off",
"vue/multi-word-component-names": "off",
"vue/html-self-closing": ["warn", { html: { void: "always", normal: "never" } }],
},
parserOptions: {
parser: "@typescript-eslint/parser",
},
};