mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
19 lines
460 B
JavaScript
19 lines
460 B
JavaScript
import pluginReact from "eslint-plugin-react";
|
|
import { defineConfig } from "eslint/config";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default defineConfig([
|
|
{
|
|
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
|
|
languageOptions: { globals: globals.browser },
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
},
|
|
tseslint.configs.recommended,
|
|
pluginReact.configs.flat.recommended,
|
|
]);
|