diff --git a/client/.eslintrc.json b/client/.eslintrc.json deleted file mode 100644 index 7e7be7d7e..000000000 --- a/client/.eslintrc.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "env": { - "browser": true, - "es2021": true, - "node": true - }, - "extends": [ - "eslint:recommended", - "plugin:react/recommended", - "plugin:react/jsx-runtime", - "plugin:jest/recommended", - "plugin:prettier/recommended" - ], - "overrides": [ - { - "files": [ - "**/*.spec.js", - "**/*.spec.jsx", - "**/*.test.js" - ], - "env": { - "jest": true - } - } - ], - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module" - }, - "plugins": [ - "react", - "jest" - ], - "settings": { - "react": { - "createClass": "createReactClass", - "pragma": "React", - "fragment": "Fragment", - "version": "detect", - "flowVersion": "0.53" - } - }, - "rules": { - "no-unused-vars": [ - "error", - { - "varsIgnorePattern": "React" - } - ], - "indent": "off", - // "indent": [ - // "error", - // 2, - // { - // "ignoredNodes": ["TemplateLiteral", "BinaryExpression"] - // } - // ], - "prettier/prettier": [ - "warn", - { - "endOfLine": "auto" - } - ] - } -} \ No newline at end of file diff --git a/client/.gitignore b/client/.gitignore index 045249da5..7d31b2bd3 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -7,6 +7,7 @@ # production /build +/dist # misc .env.local diff --git a/client/eslint.config.js b/client/eslint.config.js new file mode 100644 index 000000000..5c9114631 --- /dev/null +++ b/client/eslint.config.js @@ -0,0 +1,37 @@ +// eslint.config.js +import js from "@eslint/js"; +import reactPlugin from "eslint-plugin-react"; +import globals from "globals"; + +export default [ + { + files: ["**/*.{js,jsx}"], + languageOptions: { + ecmaVersion: "latest", + sourceType: "module", + parserOptions: { + ecmaFeatures: { + jsx: true, + }, + }, + globals: { + ...globals.browser, + ...globals.node, + }, + }, + plugins: { + react: reactPlugin, + }, + rules: { + ...js.configs.recommended.rules, + ...reactPlugin.configs.recommended.rules, + ...reactPlugin.configs["jsx-runtime"].rules, + "no-unused-vars": "off" + }, + settings: { + react: { + version: "detect", + }, + }, + }, +]; \ No newline at end of file diff --git a/client/public/index.html b/client/index.html similarity index 90% rename from client/public/index.html rename to client/index.html index 9184af75b..11ea77c75 100644 --- a/client/public/index.html +++ b/client/index.html @@ -7,7 +7,7 @@ content="width=device-width, initial-scale=1, shrink-to-fit=no" /> - +
+