mirror of https://github.com/bastienwirtz/homer
31 lines
733 B
JavaScript
31 lines
733 B
JavaScript
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/**"],
|
|
},
|
|
];
|