-
-
Notifications
You must be signed in to change notification settings - Fork 899
Expand file tree
/
Copy patheslint.config.js
More file actions
30 lines (29 loc) · 733 Bytes
/
eslint.config.js
File metadata and controls
30 lines (29 loc) · 733 Bytes
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
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginVue from "eslint-plugin-vue";
import eslintConfigPrettier from "@vue/eslint-config-prettier";
/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ["**/*.{js,mjs,cjs,vue}"] },
{
languageOptions: {
globals: {
...globals.browser,
__APP_VERSION__: "readable",
},
},
},
pluginJs.configs.recommended,
...pluginVue.configs["flat/recommended"],
eslintConfigPrettier,
{
rules: {
"vue/multi-word-component-names": "off",
"vue/require-default-prop": "off",
"vue/no-v-html": "off",
},
},
{
ignores: ["**/dist/**", "**/dist-ssr/**", "**/coverage/**"],
},
];