forked from KotatsuApp/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
42 lines (41 loc) · 1.21 KB
/
Copy patheslint.config.js
File metadata and controls
42 lines (41 loc) · 1.21 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
import js from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier/flat";
import perfectionist from "eslint-plugin-perfectionist";
import pluginVue from "eslint-plugin-vue";
import { defineConfig, globalIgnores } from "eslint/config";
import globals from "globals";
import ts from "typescript-eslint";
export default defineConfig([
globalIgnores(["node_modules/", ".vitepress/cache", ".vitepress/dist"]),
js.configs.recommended,
...ts.configs.recommended,
...pluginVue.configs["flat/recommended"],
perfectionist.configs["recommended-natural"],
{
languageOptions: {
sourceType: "module",
globals: {
...globals.browser,
},
},
rules: {
"perfectionist/sort-objects": "off",
"perfectionist/sort-interfaces": "off",
"perfectionist/sort-object-types": "off",
"perfectionist/sort-modules": "off",
},
},
{
files: ["*.vue", "**/*.vue"],
languageOptions: {
parserOptions: {
parser: "@typescript-eslint/parser",
},
},
rules: {
"vue/multi-word-component-names": "off",
"vue/require-default-prop": "off", // causes errors when using prop ads with TypeScript
},
},
eslintConfigPrettier,
]);