48 lines
1.2 KiB
JavaScript
48 lines
1.2 KiB
JavaScript
import js from "@eslint/js";
|
|
import pluginVue from "eslint-plugin-vue";
|
|
import tseslint from "typescript-eslint";
|
|
import globals from "globals";
|
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
|
|
export default tseslint.config(
|
|
{
|
|
ignores: [
|
|
"dist/**",
|
|
"node_modules/**",
|
|
"stub/**",
|
|
"playwright-report/**",
|
|
"test-results/**",
|
|
"e2e/.bin/**",
|
|
"e2e/.runtime.json",
|
|
"e2e/.server.pid",
|
|
"e2e/start-stack.mjs",
|
|
],
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
...pluginVue.configs["flat/recommended"],
|
|
{
|
|
files: ["**/*.{ts,vue}"],
|
|
languageOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
globals: { ...globals.browser, ...globals.node },
|
|
parserOptions: {
|
|
parser: tseslint.parser,
|
|
extraFileExtensions: [".vue"],
|
|
},
|
|
},
|
|
rules: {
|
|
"vue/multi-word-component-names": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
|
],
|
|
"vue/max-attributes-per-line": "off",
|
|
"vue/singleline-html-element-content-newline": "off",
|
|
"vue/html-self-closing": "off",
|
|
},
|
|
},
|
|
eslintConfigPrettier,
|
|
);
|