Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions app/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import eslint from "@eslint/js";
import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";
import prettierConfig from "eslint-config-prettier";
import eslintPluginReact from "eslint-plugin-react";
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
import eslintReact from "@eslint-react/eslint-plugin";
import globals from "globals";

export default defineConfig(
Expand All @@ -17,14 +16,9 @@ export default defineConfig(
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintReact.configs["recommended-typescript"],
prettierConfig,
eslintPluginReactHooks.configs.flat.recommended,
],
settings: {
react: {
version: "detect",
},
},
languageOptions: {
parserOptions: {
ecmaVersion: "latest",
Expand All @@ -40,19 +34,7 @@ export default defineConfig(
...globals.browser,
},
},
plugins: {
react: eslintPluginReact,
},
rules: {
// Recommended rules from plugins that don't yet support flat config:
...eslintPluginReact.configs.recommended.rules,

// Rules from eslint-plugin-react's jsx-runtime config:
"react/react-in-jsx-scope": 0,
"react/jsx-uses-react": 0,

// Custom rules configuration:
"react/no-unescaped-entities": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
Expand Down
Loading
Loading