diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json index f7cda80..f16394b 100644 --- a/frontend/.eslintrc.json +++ b/frontend/.eslintrc.json @@ -1,11 +1,23 @@ { + "root": true, + "parser": "@typescript-eslint/parser", "plugins": [ + "@typescript-eslint", + "prettier", + "import", "jest", "react", "react-hooks", "html" ], "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:@typescript-eslint/recommended-requiring-type-checking", + "prettier/@typescript-eslint", + "plugin:import/errors", + "plugin:import/warnings", + "plugin:import/typescript", "plugin:jest/recommended", "plugin:react-hooks/recommended", "plugin:react/recommended" @@ -17,6 +29,7 @@ "ecmaFeatures": { "jsx": true }, + "sourceType": "module", "project": "./tsconfig.json" }, "settings": { @@ -34,5 +47,8 @@ ] } } + }, + "rules": { + "@typescript-eslint/require-await": "warn" } } \ No newline at end of file diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx index 67adbd2..923b377 100644 --- a/frontend/src/index.tsx +++ b/frontend/src/index.tsx @@ -1,4 +1,4 @@ import * as React from "react"; import { render } from "react-dom"; -render(

Hello World

, document.getElementById("root")); \ No newline at end of file +render(

Hello World

, document.getElementById("root"));