mirror of
https://github.com/TeamPiped/Piped.git
synced 2026-03-28 03:16:58 +00:00
Upgrade eslint and vite.
This commit is contained in:
42
eslint.config.js
Normal file
42
eslint.config.js
Normal file
@@ -0,0 +1,42 @@
|
||||
import js from "@eslint/js";
|
||||
import unoConfig from "@unocss/eslint-config/flat";
|
||||
import { defineConfig } from "eslint/config";
|
||||
import prettierRecommended from "eslint-plugin-prettier/recommended";
|
||||
import vue from "eslint-plugin-vue";
|
||||
import globals from "globals";
|
||||
|
||||
export default defineConfig([
|
||||
{
|
||||
ignores: ["**/.*", "node_modules/**", "dist/**", "dist-ci/**"],
|
||||
},
|
||||
{
|
||||
files: ["**/*.{js,mjs,cjs,vue}"],
|
||||
languageOptions: {
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "module",
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.node,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
...js.configs.recommended,
|
||||
files: ["**/*.{js,mjs,cjs,vue}"],
|
||||
},
|
||||
...vue.configs["flat/recommended"],
|
||||
{
|
||||
...unoConfig,
|
||||
files: ["**/*.{js,mjs,cjs,vue}"],
|
||||
},
|
||||
{
|
||||
files: ["**/*.vue"],
|
||||
rules: {
|
||||
"no-useless-assignment": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
...prettierRecommended,
|
||||
files: ["**/*.{js,mjs,cjs,vue}"],
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user