Files
live/frontend/eslint.config.js
2025-10-03 20:50:51 +00:00

40 lines
962 B
JavaScript

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 prettier from "eslint-config-prettier";
export default tseslint.config([
{
ignores: ["dist", "node_modules"],
},
{
files: ["**/*.{ts,tsx,js,jsx}"],
extends: [
js.configs.recommended,
...tseslint.configs.recommended,
prettier,
],
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
rules: {
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_" },
],
},
},
]);