aboutsummaryrefslogtreecommitdiff
path: root/vnext/.eslintrc
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/.eslintrc')
-rw-r--r--vnext/.eslintrc14
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"
}
}