From abe8e7bc26906929914834dbaf38a793bcbb4f78 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 8 Nov 2022 00:17:14 +0300 Subject: ESLint: switch to `@typescript-eslint/parser` * JS version of the `no-floating-promise` rule sucks :( --- vnext/.eslintrc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'vnext/.eslintrc') diff --git a/vnext/.eslintrc b/vnext/.eslintrc index 110060b5..dcab422f 100644 --- a/vnext/.eslintrc +++ b/vnext/.eslintrc @@ -4,7 +4,9 @@ "plugin:jsdoc/recommended", "plugin:react/recommended", "plugin:react/jsx-runtime", - "plugin:jest/recommended" + "plugin:jest/recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended" ], "env": { "browser": true, @@ -20,7 +22,7 @@ "jest", "jest-dom", "jsdoc", - "no-floating-promise" + "@typescript-eslint" ], "settings": { "react": { @@ -37,7 +39,11 @@ "extends": ["plugin:testing-library/react"] } ], + "parser": "@typescript-eslint/parser", "parserOptions": { + "project": [ + "jsconfig.json" + ], "sourceType": "module", "ecmaFeatures": { "jsx": true @@ -57,8 +63,8 @@ "jsdoc/require-returns-type": "off", "jsdoc/require-property-description": "off", "jsdoc/require-param-description": "off", - "no-floating-promise/no-floating-promise": "error", "semi": ["error", "always"], - "semi-style": ["error", "last"] + "semi-style": ["error", "last"], + "@typescript-eslint/no-floating-promises": "error" } } -- cgit v1.2.3