-
Notifications
You must be signed in to change notification settings - Fork 120
/
eslint.config.cjs
36 lines (32 loc) · 983 Bytes
/
eslint.config.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
const globals = require("globals")
const pluginVue = require("eslint-plugin-vue")
const js = require("@eslint/js")
module.exports = [
...pluginVue.configs['flat/recommended'],
{
files: ["**/*.{vue,js,jsx,cjs,mjs}"],
ignores: ["**/tests/*"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
...globals.node,
myCustomGlobal: "readonly"
},
},
rules: {
"vue/no-v-html": "off",
"vue/multi-word-component-names": "off",
"vue/require-prop-types": "off",
"vue/require-default-prop": "off",
"vue/no-template-shadow": "off",
"vue/require-explicit-emits": "off",
"vue/no-useless-template-attributes": "off",
"vue/return-in-emits-validator": "off",
"vue/no-side-effects-in-computed-properties": "off",
"vue/no-v-text-v-html-on-component": "off",
// ...js.configs.recommended.rules,
},
}
]