forked from cars10/elasticvue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
26 lines (24 loc) · 861 Bytes
/
eslint.config.mjs
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
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
export default [
...compat.extends("plugin:vue/vue3-recommended", "@vue/eslint-config-typescript"),
{
rules: {
"vue/max-attributes-per-line": "off",
"vue/first-attribute-linebreak": "off",
"vue/html-closing-bracket-newline": "off",
"vue/singleline-html-element-content-newline": "off",
quotes: ["error", "single"],
},
files: ["src/**/*.js", "src/**/*.vue", "src/**/*.ts"]
},
];