diff --git a/js/.eslintrc.js b/js/.eslintrc.js index ea03295fa..b51997fa4 100644 --- a/js/.eslintrc.js +++ b/js/.eslintrc.js @@ -17,11 +17,15 @@ module.exports = { parserOptions: { ecmaVersion: "latest", sourceType: "module", + project: "./tsconfig.json", + tsconfigRootDir: __dirname, }, plugins: ["react", "@typescript-eslint"], rules: { "@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-floating-promises": "error", + "@typescript-eslint/no-misused-promises": "error", }, settings: { react: { diff --git a/js/tsconfig.json b/js/tsconfig.json index 0721a336f..717daef52 100644 --- a/js/tsconfig.json +++ b/js/tsconfig.json @@ -21,5 +21,5 @@ "experimentalDecorators": true, "useDefineForClassFields": false, }, - "include": ["**/*.tsx", "**/*.ts"], + "include": ["**/*.tsx", "**/*.ts", "**/*.js"] }