From 66f762f4f4118b1e3d313b27d8cf37464f769ed9 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 19 Apr 2023 15:52:01 -0700 Subject: [PATCH] eslint: Enable @typescript-eslint/strict configuration. Signed-off-by: Anders Kaseorg --- .eslintrc.json | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 59326c9abf..430b94b1e2 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -148,6 +148,7 @@ "extends": [ "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking", + "plugin:@typescript-eslint/strict", "plugin:import/typescript" ], "parserOptions": { @@ -166,11 +167,8 @@ "rules": { // Disable base rule to avoid conflict "no-duplicate-imports": "off", - "no-useless-constructor": "off", "no-use-before-define": "off", - "@typescript-eslint/array-type": "error", - "@typescript-eslint/consistent-type-assertions": "error", "@typescript-eslint/consistent-type-definitions": ["error", "type"], "@typescript-eslint/consistent-type-imports": "error", "@typescript-eslint/explicit-function-return-type": [ @@ -179,9 +177,9 @@ ], "@typescript-eslint/member-ordering": "error", "@typescript-eslint/no-duplicate-imports": "error", - "@typescript-eslint/no-extraneous-class": "error", "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-parameter-properties": "error", + "@typescript-eslint/no-unnecessary-condition": "off", "@typescript-eslint/no-unnecessary-qualifier": "error", "@typescript-eslint/no-unsafe-argument": "off", "@typescript-eslint/no-unsafe-assignment": "off", @@ -190,11 +188,7 @@ "@typescript-eslint/no-unsafe-return": "off", "@typescript-eslint/no-unused-vars": ["error", {"ignoreRestSiblings": true}], "@typescript-eslint/no-use-before-define": ["error", {"functions": false}], - "@typescript-eslint/no-useless-constructor": "error", - "@typescript-eslint/prefer-includes": "error", - "@typescript-eslint/prefer-string-starts-ends-with": "error", "@typescript-eslint/promise-function-async": "error", - "@typescript-eslint/unified-signatures": "error", "import/no-cycle": "error", "no-undef": "error" }