cloud-portal/eslint.config.js

25 lines
685 B
JavaScript
Raw Permalink Normal View History

2026-06-22 15:50:35 +01:00
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";
import { defineConfig, globalIgnores } from "eslint/config";
2026-06-02 12:21:25 +01:00
import eslintConfigPrettier from "eslint-config-prettier";
2026-05-28 14:55:13 +01:00
export default defineConfig([
2026-06-22 15:50:35 +01:00
globalIgnores(["dist"]),
2026-05-28 14:55:13 +01:00
{
2026-06-22 15:50:35 +01:00
files: ["**/*.{ts,tsx}"],
2026-05-28 14:55:13 +01:00
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
2026-06-02 12:21:25 +01:00
eslintConfigPrettier,
2026-05-28 14:55:13 +01:00
],
languageOptions: {
globals: globals.browser,
},
},
2026-06-22 15:50:35 +01:00
]);