From f70e02f5331e08e4ac28f4184770b05fd1eab490 Mon Sep 17 00:00:00 2001 From: Cayman Date: Fri, 19 Apr 2024 10:43:21 -0400 Subject: [PATCH 1/2] fix: use @typescript-eslint/no-unused-vars --- src/ts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ts.js b/src/ts.js index a5ffabd..ff0e90b 100644 --- a/src/ts.js +++ b/src/ts.js @@ -22,6 +22,8 @@ module.exports = { '@typescript-eslint/await-thenable': 'error', // disallows awaiting a value that is not a "Thenable" '@typescript-eslint/restrict-template-expressions': 'off', // allow values with `any` type in template literals '@typescript-eslint/method-signature-style': ['error', 'method'], // enforce method signature style + "no-unused-vars": "off", // disable this rule to use @typescript-eslint/no-unused-vars instead + "@typescript-eslint/no-unused-vars": "error", // disallow unused variables 'no-return-await': 'off', // disable this rule to use @typescript-eslint/return-await instead '@typescript-eslint/return-await': ['error', 'in-try-catch'], // require awaiting thenables returned from try/catch 'jsdoc/require-param': 'off', // do not require jsdoc for params From b8a6b39d899bedb14fd432fb6f49b58ed0069f44 Mon Sep 17 00:00:00 2001 From: Cayman Date: Fri, 19 Apr 2024 10:55:43 -0400 Subject: [PATCH 2/2] chore: fix linter error --- src/ts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ts.js b/src/ts.js index ff0e90b..63354b9 100644 --- a/src/ts.js +++ b/src/ts.js @@ -22,8 +22,8 @@ module.exports = { '@typescript-eslint/await-thenable': 'error', // disallows awaiting a value that is not a "Thenable" '@typescript-eslint/restrict-template-expressions': 'off', // allow values with `any` type in template literals '@typescript-eslint/method-signature-style': ['error', 'method'], // enforce method signature style - "no-unused-vars": "off", // disable this rule to use @typescript-eslint/no-unused-vars instead - "@typescript-eslint/no-unused-vars": "error", // disallow unused variables + 'no-unused-vars': 'off', // disable this rule to use @typescript-eslint/no-unused-vars instead + '@typescript-eslint/no-unused-vars': 'error', // disallow unused variables 'no-return-await': 'off', // disable this rule to use @typescript-eslint/return-await instead '@typescript-eslint/return-await': ['error', 'in-try-catch'], // require awaiting thenables returned from try/catch 'jsdoc/require-param': 'off', // do not require jsdoc for params