diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-10 22:11:33 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-10 22:11:33 +0900 |
| commit | 8f72e222107f1786aa49b31fe1da5fa16972d4de (patch) | |
| tree | 09fa2112d661a096e9befc7d078c4d931c4a0cce /frontend/eslint.config.js | |
| parent | a3a2bc9dc1c339e26cf93e3b510f280acaab5027 (diff) | |
| download | iosdc-japan-2025-albatross-8f72e222107f1786aa49b31fe1da5fa16972d4de.tar.gz iosdc-japan-2025-albatross-8f72e222107f1786aa49b31fe1da5fa16972d4de.tar.zst iosdc-japan-2025-albatross-8f72e222107f1786aa49b31fe1da5fa16972d4de.zip | |
feat(frontend): migrate from .eslintrc.cjs to eslint.config.js (flat config)
Diffstat (limited to 'frontend/eslint.config.js')
| -rw-r--r-- | frontend/eslint.config.js | 37 |
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" }, + ], + }, + }, +); |
