This commit is contained in:
2025-05-21 18:03:22 +03:00
parent 4419151510
commit 074d6674b8
34 changed files with 99 additions and 79 deletions

View File

@@ -1,6 +1,6 @@
import js from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier/flat";
import pluginReact from "eslint-plugin-react";
import reactCompiler from "eslint-plugin-react-compiler";
import reactHooks from "eslint-plugin-react-hooks";
import { defineConfig } from "eslint/config";
import globals from "globals";
@@ -16,8 +16,14 @@ export default defineConfig([
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
languageOptions: { globals: globals.browser },
},
tseslint.configs.recommended,
pluginReact.configs.recommended,
reactHooks.configs.recommended,
eslintConfigPrettier,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
reactHooks.configs["recommended-latest"],
reactCompiler.configs.recommended,
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
rules: {
"react/react-in-jsx-scope": "off",
},
},
]);