Files
Homer/eslint.config.js

31 lines
733 B
JavaScript
Raw Permalink Normal View History

2025-02-22 16:07:40 +01:00
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginVue from "eslint-plugin-vue";
import eslintConfigPrettier from "@vue/eslint-config-prettier";
2024-10-16 21:29:18 +02:00
2025-02-22 16:07:40 +01:00
/** @type {import('eslint').Linter.Config[]} */
2024-10-16 21:29:18 +02:00
export default [
2025-02-22 16:07:40 +01:00
{ files: ["**/*.{js,mjs,cjs,vue}"] },
{
languageOptions: {
globals: {
...globals.browser,
__APP_VERSION__: "readable",
},
},
},
2025-02-22 16:07:40 +01:00
pluginJs.configs.recommended,
...pluginVue.configs["flat/recommended"],
2024-10-16 21:29:18 +02:00
eslintConfigPrettier,
{
rules: {
"vue/multi-word-component-names": "off",
"vue/require-default-prop": "off",
"vue/no-v-html": "off",
},
2025-02-22 16:07:40 +01:00
},
2024-10-16 21:29:18 +02:00
{
ignores: ["**/dist/**", "**/dist-ssr/**", "**/coverage/**"],
2025-02-22 16:07:40 +01:00
},
2024-10-16 21:29:18 +02:00
];