-
Notifications
You must be signed in to change notification settings - Fork 32
/
eslint.config.mjs
37 lines (34 loc) · 1.13 KB
/
eslint.config.mjs
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 */
import vuePlugin from "eslint-plugin-vue";
import prettierPlugin from "eslint-plugin-prettier/recommended";
import typescriptConfig from "@vue/eslint-config-typescript";
import prettierConfig from "@vue/eslint-config-prettier";
export default [
// add more generic rulesets here
...vuePlugin.configs["flat/recommended"],
...typescriptConfig(),
prettierPlugin,
prettierConfig,
// your modifications
{
ignores: ["**/.*", "dist/"],
rules: {
"@typescript-eslint/no-explicit-any": ["warn"],
"@typescript-eslint/ban-ts-comment": ["warn"],
"@typescript-eslint/explicit-function-return-type": ["warn"],
"vue/padding-line-between-blocks": ["error", "always"],
"vue/multi-word-component-names": ["off"],
"vue/block-order": ["error", { order: ["script", "template", "style"] }],
"vue/block-lang": ["error", { script: { lang: "ts" } }],
"comma-dangle": ["error", "always-multiline"],
"prettier/prettier": [
"error",
{
trailingComma: "all",
endOfLine: "auto",
bracketSameLine: true,
},
],
},
},
];