Skip to content

Commit

Permalink
chore(lint): handle disable directives in config
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jan 1, 2024
1 parent 47f3161 commit 5f61575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5f61575

Please sign in to comment.