diff --git a/client/.prettierignore b/client/.prettierignore new file mode 100644 index 0000000..1521c8b --- /dev/null +++ b/client/.prettierignore @@ -0,0 +1 @@ +dist diff --git a/client/.prettierrc b/client/.prettierrc new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/client/.prettierrc @@ -0,0 +1 @@ +{} diff --git a/client/eslint.config.js b/client/eslint.config.js deleted file mode 100644 index 238d2e4..0000000 --- a/client/eslint.config.js +++ /dev/null @@ -1,38 +0,0 @@ -import js from '@eslint/js' -import globals from 'globals' -import react from 'eslint-plugin-react' -import reactHooks from 'eslint-plugin-react-hooks' -import reactRefresh from 'eslint-plugin-react-refresh' - -export default [ - { ignores: ['dist'] }, - { - files: ['**/*.{js,jsx}'], - languageOptions: { - ecmaVersion: 2020, - globals: globals.browser, - parserOptions: { - ecmaVersion: 'latest', - ecmaFeatures: { jsx: true }, - sourceType: 'module', - }, - }, - settings: { react: { version: '18.3' } }, - plugins: { - react, - 'react-hooks': reactHooks, - 'react-refresh': reactRefresh, - }, - rules: { - ...js.configs.recommended.rules, - ...react.configs.recommended.rules, - ...react.configs['jsx-runtime'].rules, - ...reactHooks.configs.recommended.rules, - 'react/jsx-no-target-blank': 'off', - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - }, - }, -] diff --git a/client/eslint.config.mjs b/client/eslint.config.mjs new file mode 100644 index 0000000..f521ef4 --- /dev/null +++ b/client/eslint.config.mjs @@ -0,0 +1,25 @@ +// @ts-check + +import react from "eslint-plugin-react"; +import reactHooks from "eslint-plugin-react-hooks"; +import reactRefresh from "eslint-plugin-react-refresh"; +import tseslint from "typescript-eslint"; +import eslint from "typescript-eslint"; +import { defineConfig } from "eslint/config"; + +export default defineConfig( + { ignores: ["dist"] }, + eslint.configs.recommended, + tseslint.configs.recommended, + react.configs.flat.recommended, + react.configs.flat["jsx-runtime"], + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + { + settings: { + react: { + version: "detect", + }, + }, + }, +); diff --git a/client/index.html b/client/index.html index 0c589ec..891a938 100644 --- a/client/index.html +++ b/client/index.html @@ -8,6 +8,6 @@
- +