-
-
Notifications
You must be signed in to change notification settings - Fork 117
/
eslint.config.js
54 lines (52 loc) · 2.14 KB
/
eslint.config.js
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
// @ts-check
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
import vueParser from "vue-eslint-parser";
import eslintConfigPrettier from "eslint-config-prettier";
export default tseslint.config(
{
ignores: ["packages/*/dist", "node_modules"],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
// @ts-expect-error - `pluginVue.configs` is not properly typed
...pluginVue.configs["flat/recommended"],
eslintConfigPrettier,
{
languageOptions: {
parser: vueParser,
parserOptions: {
parser: tseslint.parser,
project: true,
tsconfigRootDir: "./",
extraFileExtensions: [".vue"],
},
},
rules: {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"no-implied-eval": "off",
"@typescript-eslint/no-implied-eval": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"require-await": "off",
"@typescript-eslint/require-await": "error",
"@typescript-eslint/unbound-method": "error",
"vue/html-indent": ["warn", 4],
"vue/no-mutating-props": "off",
"vue/max-attributes-per-line": "off",
"vue/html-self-closing": ["warn", { html: { void: "any" } }],
"vue/multi-word-component-names": "off",
"vue/singleline-html-element-content-newline": "off",
},
},
);