aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/eslint.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/eslint.config.js')
-rw-r--r--frontend/eslint.config.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js
new file mode 100644
index 0000000..538fb12
--- /dev/null
+++ b/frontend/eslint.config.js
@@ -0,0 +1,37 @@
+import js from "@eslint/js";
+import jsxA11y from "eslint-plugin-jsx-a11y";
+import react from "eslint-plugin-react";
+import reactHooks from "eslint-plugin-react-hooks";
+import { defineConfig, globalIgnores } from "eslint/config";
+import globals from "globals";
+import ts from "typescript-eslint";
+
+export default defineConfig(
+ globalIgnores(["node_modules/", ".react-router/", "build/"]),
+ js.configs.recommended,
+ ts.configs.recommended,
+ react.configs.flat.recommended,
+ react.configs.flat["jsx-runtime"],
+ reactHooks.configs["recommended-latest"],
+ jsxA11y.flatConfigs.recommended,
+ {
+ languageOptions: {
+ globals: {
+ ...globals.browser,
+ ...globals.node,
+ },
+ },
+ },
+ {
+ settings: {
+ react: {
+ version: "detect",
+ },
+ formComponents: ["Form"],
+ linkComponents: [
+ { name: "Link", linkAttribute: "to" },
+ { name: "NavLink", linkAttribute: "to" },
+ ],
+ },
+ },
+);