2025-08-05 16:22:09 +08:00
|
|
|
import js from "@eslint/js";
|
|
|
|
import globals from "globals";
|
|
|
|
import tseslint from "typescript-eslint";
|
|
|
|
import pluginReact from "eslint-plugin-react";
|
|
|
|
import { defineConfig } from "eslint/config";
|
2025-07-30 09:13:52 +08:00
|
|
|
|
2025-08-05 16:22:09 +08:00
|
|
|
export default defineConfig([
|
|
|
|
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.browser } },
|
|
|
|
tseslint.configs.recommended,
|
|
|
|
pluginReact.configs.flat.recommended,
|
|
|
|
]);
|