forked from bambanah/deemix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
52 lines (50 loc) · 1.21 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
43
44
45
46
47
48
49
50
51
52
// @ts-check
import eslint from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import pluginVue from "eslint-plugin-vue";
import globals from "globals";
import tslint from "typescript-eslint";
const extraFileExtensions = [".vue"];
export default tslint.config(
eslint.configs.recommended,
...tslint.configs.recommended,
// @ts-expect-error Fix your plugin
...pluginVue.configs["flat/recommended"],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
{
files: ["**/*.ts", "**/*.vue"],
languageOptions: {
parserOptions: {
parser: tslint.parser,
extraFileExtensions,
},
},
},
{
files: ["webui/**/*"],
rules: {
"vue/no-v-html": "off",
"vue/require-explicit-emits": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-console": ["error", { allow: ["warn", "error", "trace"] }],
},
},
{
files: ["deemix/**/*", "deezer-sdk/**/*"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"no-console": ["error", { allow: ["warn", "error", "trace"] }],
},
},
{ ignores: ["**/node_modules/", "**/dist/"] },
eslintConfigPrettier
);