From 5f61575951d9f5e794afd9c9977dc35298509698 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Sun, 31 Dec 2023 12:38:38 -0700 Subject: [PATCH] chore(lint): handle disable directives in config --- eslint.config.mjs | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 6bef4b294..722e0ce2a 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -4,6 +4,9 @@ import jsdoc from './dist/index.js'; // import canonicalJsdoc from 'eslint-config-canonical/jsdoc.js'; const common = { + linterOptions: { + reportUnusedDisableDirectives: 'off' + }, plugins: { jsdoc } diff --git a/package.json b/package.json index a5478b3c8..47587860f 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "create-options": "node ./src/bin/generateOptions.mjs", "install-offline": "pnpm install --prefer-offline --no-audit", "lint": "npm run lint-arg -- .", - "lint-arg": "eslint --report-unused-disable-directives-severity=off", + "lint-arg": "eslint", "lint-fix": "npm run lint-arg -- --fix .", "prepare": "husky install", "test-no-cov": "cross-env BABEL_ENV=test mocha",