-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
98 lines (97 loc) · 2.78 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
extends: [
"plugin:vue/vue3-essential",
"plugin:vue/vue3-strongly-recommended",
"plugin:vue/vue3-recommended",
"plugin:vuejs-accessibility/recommended",
"eslint:recommended",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier/skip-formatting",
"plugin:jsdoc/recommended-typescript",
],
parserOptions: {
ecmaVersion: "latest",
},
rules: {
/**
* @see {@link https://eslint.vuejs.org/rules/block-lang.html} for further information.
*/
"vue/block-lang": [
"error",
{
script: {
lang: "ts",
},
},
],
/**
* @see {@link https://eslint.vuejs.org/rules/component-api-style.html} for further information.
*/
"vue/component-api-style": ["error", ["script-setup", "composition"]],
/**
* @see {@link https://eslint.vuejs.org/rules/custom-event-name-casing.html} for further information.
*/
"vue/custom-event-name-casing": [
"error",
"camelCase",
{
ignores: [],
},
],
/**
* @see {@link https://eslint.vuejs.org/rules/define-emits-declaration.html} for further information.
*/
"vue/define-emits-declaration": ["error", "type-based"],
/**
* @see {@link https://eslint.vuejs.org/rules/define-props-declaration.html} for further information.
*/
"vue/define-props-declaration": ["error", "type-based"],
/**
* @see {@link https://eslint.vuejs.org/rules/html-button-has-type.html} for further information.
*/
"vue/html-button-has-type": [
"error",
{
button: true,
submit: true,
reset: true,
},
],
/**
* @see {@link https://eslint.vuejs.org/rules/no-template-target-blank.html} for further information.
*/
"vue/no-template-target-blank": [
"error",
{
allowReferrer: false,
enforceDynamicLinks: "always",
},
],
/**
* @see {@link https://eslint.vuejs.org/rules/prefer-true-attribute-shorthand.html} for further information.
*/
"vue/prefer-true-attribute-shorthand": ["error", "always"],
/**
* @see {@link https://eslint.vuejs.org/rules/require-macro-variable-name.html} for further information.
*/
"vue/require-macro-variable-name": [
"error",
{
defineProps: "props",
defineEmits: "emit",
defineSlots: "slots",
useSlots: "slots",
useAttrs: "attrs",
},
],
"vuejs-accessibility/label-has-for": "off",
"jsdoc/check-tag-names": ["warn", { definedTags: ["pattern"] }],
"jsdoc/check-indentation": 1,
"jsdoc/check-line-alignment": 1,
"jsdoc/check-syntax": 1,
"jsdoc/sort-tags": 1,
},
};