-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
50 lines (49 loc) · 1.5 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
/** @type {import("eslint").ESLint.ConfigData} */
module.exports = {
root: true,
env: {
browser: true,
es2017: true,
node: true,
},
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
ecmaVersion: 2020,
sourceType: "module",
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended",
"prettier",
],
plugins: ["@typescript-eslint", "vue", "@intlify/vue-i18n"],
rules: {
"vue/multi-word-component-names": "off",
"vue/component-api-style": ["warn", ["script-setup"]],
"vue/component-name-in-template-casing": ["error", "PascalCase"],
"vue/define-props-declaration": ["error", "type-based"],
"vue/no-undef-components": "error",
"vue/no-useless-mustaches": "error",
"@intlify/vue-i18n/no-raw-text": [
"error",
{
attributes: {
"/.+/": [
"alt",
"aria-label",
"aria-placeholder",
"aria-roledescription",
"aria-valuetext",
"label",
"placeholder",
"title",
],
},
ignorePattern: "^\\W+$",
},
],
},
};