From 328c2f2f6d595c88950abda368536a11710e6274 Mon Sep 17 00:00:00 2001 From: Alex Nault Date: Fri, 1 Nov 2024 14:27:29 -0400 Subject: [PATCH] config: Forbid ts-ignore (#2) * config: Forbid ts-ignore * WIP * WIP --- index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c26d32d..743384f 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,15 @@ module.exports = { "no-use-before-define": "off", // uses "@typescript-eslint/no-use-before-define" instead "max-params": ["error", 4], yoda: ["error", "never"], - "@typescript-eslint/ban-ts-comment": "off", + "@typescript-eslint/ban-ts-comment": [ + "error", + { + "ts-check": true, + "ts-expect-error": false, + "ts-ignore": true, + "ts-nocheck": true, + }, + ], "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-vars": ["warn", { ignoreRestSiblings: true }], },