-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
42 lines (41 loc) · 1.34 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
38
39
40
41
42
import js from "@eslint/js"
import eslintPluginVue from "eslint-plugin-vue"
import ts from "typescript-eslint"
import eslintConfigPrettier from "eslint-config-prettier"
export default ts.config(
js.configs.recommended,
...ts.configs.recommended,
...eslintPluginVue.configs["flat/recommended"],
{
files: ["*.vue", "**/*.vue", "*.ts", "**/*.ts", "*.js", "**/*.js"],
languageOptions: {
parserOptions: {
parser: "@typescript-eslint/parser",
project: "./tsconfig.json",
extraFileExtensions: [".vue"],
},
},
rules: {
"vue/require-default-prop": "off",
"vue/no-mutating-props": "off",
"vue/component-tags-order": "off",
"vue/max-attributes-per-line": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"vue/multiword-component-names": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-floating-promises": [
"error",
{
ignoreVoid: true, // Ignore expressions with `void`
ignoreIIFE: false, // Ignore immediately invoked function expressions
},
],
"@typescript-eslint/await-thenable": "error",
"require-await": "warn",
"vue/multi-word-component-names": "off",
},
},
eslintConfigPrettier,
)