diff --git a/front/.eslintrc.cjs b/front/.eslintrc.cjs index d46b749..1dc7153 100644 --- a/front/.eslintrc.cjs +++ b/front/.eslintrc.cjs @@ -1,16 +1,27 @@ +/* eslint-env node */ + module.exports = { + root: true, env: { browser: true, es2020: true }, extends: [ 'eslint:recommended', - 'plugin:react/recommended', - 'plugin:react/jsx-runtime', + 'plugin:@typescript-eslint/recommended', + 'plugin:@typescript-eslint/recommended-requiring-type-checking', 'plugin:react-hooks/recommended', ], - parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, - settings: { react: { version: '18.2' } }, + parser: '@typescript-eslint/parser', + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + project: true, + tsconfigRootDir: __dirname, + }, plugins: ['react-refresh'], rules: { - 'react-refresh/only-export-components': 'warn', - 'react/prop-types': 'off' + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + '@typescript-eslint/no-non-null-assertion': 'off', }, } diff --git a/front/.gitignore b/front/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/front/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/front/index.html b/front/index.html index 998d6be..16a1e36 100644 --- a/front/index.html +++ b/front/index.html @@ -10,6 +10,6 @@
- +