-
Notifications
You must be signed in to change notification settings - Fork 61
/
eslint.config.js
32 lines (30 loc) · 1.02 KB
/
eslint.config.js
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
// SPDX-FileCopyrightText: Copyright (c) 2022-2024 trobonox <[email protected]>, gitoak
//
// SPDX-License-Identifier: CC0-1.0
import withNuxt from "./.nuxt/eslint.config.mjs";
import tailwind from "eslint-plugin-tailwindcss";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import tseslint from "typescript-eslint";
import js from "@eslint/js";
export default withNuxt(
...tailwind.configs["flat/recommended"],
eslintPluginPrettierRecommended,
...tseslint.configs.recommended,
js.configs.recommended,
{
files: ["**/*.ts", "**/*.vue"],
rules: {
"no-undef": "off",
"tailwindcss/no-custom-classname": "off",
"vue/html-indent": "off",
"vue/multi-word-component-names": "off",
"vue/v-on-event-hyphenation": "off",
"@typescript-eslint/no-invalid-void-type": "off",
"@typescript-eslint/unified-signatures": "off",
"prettier/prettier": "error", // Treat Prettier issues as ESLint errors
},
},
{
ignores: ["src-tauri/**/*", "dist/**/*"],
}
);