Skip to content

Commit

Permalink
fix: reportUnusedIgnore false to disable reportUnusedIgnore when strict
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Oct 15, 2024
1 parent 906bc5b commit 440cf06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ export async function lint(project: string, options?: Partial<LintOptions>) {
checkNode(node, context)
})

if ((lintOptions.reportUnusedIgnore || lintOptions.strict) && ignoreLines) {
if (
(lintOptions.reportUnusedIgnore || lintOptions.strict) &&
lintOptions.reportUnusedIgnore !== false &&
ignoreLines
) {
for (const line of ignoreLines) {
if (!context.usedIgnoreLines?.has(line)) {
totalCount++
Expand Down

0 comments on commit 440cf06

Please sign in to comment.