-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
37 lines (36 loc) · 1.01 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
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution")
module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:vue/vue3-essential",
"@vue/eslint-config-typescript"
],
parserOptions: {
},
env: {
browser: true,
node: true,
},
rules: {
quotes: [2, "double", { avoidEscape: true }],
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"vue/multi-word-component-names": ["off"],
"vue/valid-template-root": ["off"],
"vue/singleline-html-element-content-newline": ["off"],
"comma-dangle": [2, "always-multiline"],
"semi": [2, "always"],
"space-before-function-paren": ["error", { anonymous: "always", named: "never", asyncArrow: "always" }],
"vue/html-self-closing": ["error", {
"html": {
"void": "always",
"normal": "always",
"component": "always"
},
"svg": "always",
"math": "always"
}],
},
ignorePatterns: ["**/*.spec.js"],
}