-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
60 lines (54 loc) · 1.48 KB
/
index.js
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
module.exports = {
root: true,
globals: {
MyGlobal: true
},
env: {
es6: true,
browser: true,
node: true
},
extends: [
"plugin:vue/vue3-strongly-recommended",
"@vue/eslint-config-typescript",
],
rules: {
semi: ["error", "never"],
"no-nested-ternary": "off",
"vue/block-order": ["error", {
"order": [["template"], "script", "style"]
}],
"vue/no-mutating-props": ["error", {
"shallowOnly": false
}],
"vue/block-lang": ["error",
{
"script": {
"lang": "ts"
}
}
],
"vue/component-api-style": ["error",
["script-setup", "composition"]
],
"vue/html-button-has-type": ["error", {
"button": true,
"submit": true,
"reset": true
}],
"vue/html-comment-content-spacing": ["error", "always", { "exceptions": ["*"] }],
"vue/no-undef-components": ["error"],
"vue/no-undef-properties": ["error"],
"vue/no-unsupported-features": ["error", {
"version": "^2.7.0"
}],
"vue/multi-word-component-names": ["warn"]
},
parserOptions: {
parser: require.resolve("@typescript-eslint/parser"),
extraFileExtensions: [".vue"],
ecmaVersion: "latest",
sourceType: "module"
},
plugins: ["@typescript-eslint"]
}