-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
37 lines (37 loc) · 1.06 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-disable-next-line no-undef
module.exports = {
root: true,
extends: [
"plugin:vue/vue3-recommended",
"eslint:recommended",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier/skip-formatting",
],
plugins: ["no-relative-import-paths", "simple-import-sort"],
rules: {
"vue/multi-word-component-names": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"vue/block-order": [
"error",
{
order: ["script", "template", "style"],
},
],
"no-relative-import-paths/no-relative-import-paths": [
"error",
{ allowSameFolder: true, rootDir: "src/", prefix: "@/" },
],
"vue/padding-line-between-blocks": 2,
"vue/padding-line-between-tags": [
"error",
[{ blankLine: "always", prev: "*", next: "*" }],
],
"vue/no-undef-components": [
"error",
{ ignorePatterns: ["router-link", "router-view", "i18n-t"] },
],
"vue/custom-event-name-casing": ["error", "camelCase"],
"newline-before-return": "error",
},
};