diff options
author | Vitaly Takmazov | 2022-11-08 00:17:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:58 +0300 |
commit | abe8e7bc26906929914834dbaf38a793bcbb4f78 (patch) | |
tree | 677b41bc2b3d2f78b26392dbf4bb7d7dddb603bb /vnext/.eslintrc | |
parent | ee4f45f13f652d8807c2617f24aa167243076b5e (diff) |
ESLint: switch to `@typescript-eslint/parser`
* JS version of the `no-floating-promise` rule sucks :(
Diffstat (limited to 'vnext/.eslintrc')
-rw-r--r-- | vnext/.eslintrc | 14 |
1 files changed, 10 insertions, 4 deletions
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" } } |