mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 01:52:17 -05:00
24 lines
855 B
JavaScript
24 lines
855 B
JavaScript
import js from "@eslint/js";
|
|
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
import reactPlugin from "eslint-plugin-react";
|
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
import reactRefresh from "eslint-plugin-react-refresh";
|
|
import { defineConfig, globalIgnores } from "eslint/config";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default defineConfig([
|
|
globalIgnores(["node_modules/", "dist/", "dev-dist/"]),
|
|
{
|
|
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
|
|
plugins: { js, reactHooks, reactRefresh },
|
|
extends: ["js/recommended"],
|
|
languageOptions: { globals: globals.browser },
|
|
settings: { react: { version: "detect" } },
|
|
},
|
|
tseslint.configs.recommended,
|
|
reactPlugin.configs.flat.recommended,
|
|
reactPlugin.configs.flat["jsx-runtime"],
|
|
eslintConfigPrettier,
|
|
]);
|