-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
48 lines (47 loc) · 1.08 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
38
39
40
41
42
43
44
45
46
47
48
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution")
module.exports = {
parser: "@typescript-eslint/parser",
root: true,
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"@vue/eslint-config-typescript/recommended",
"@vue/eslint-config-prettier",
".eslintrc-auto-import.json",
],
env: {
"vue/setup-compiler-macros": true,
},
rules: {
"@typescript-eslint/no-explicit-any": "off",
},
overrides: [
{
files: ["cypress/integration/**.spec.{js,ts,jsx,tsx}"],
extends: ["plugin:cypress/recommended"],
},
{
files: ["*.c{js,ts}"],
env: {
node: true,
},
},
{
files: ["*.vue"],
parser: "vue-eslint-parser",
rules: {
"@typescript-eslint/no-unused-vars": "off",
"vue/multi-word-component-names": "off",
},
globals: {
$ref: "readonly",
$computed: "readonly",
$toRef: "readonly",
$: "readonly",
$$: "readonly",
},
},
],
}