Files
oxc-project__oxc/apps/oxlint/test/fixtures/getDisableDirectives/output.snap.md
camc314 1d22912cb4 fix(linter/plugins): parse rule-less directive justifications (#25559)
## Summary

- extract directive justifications before parsing directive labels, matching ESLint
- return an empty rule value for rule-less directives while preserving their justification
- cover block, enable, line, and next-line directives with both eslint and oxlint prefixes

Closes #25556
2026-08-12 16:44:01 +00:00

401 B

Exit code

1

stdout

  x get-disable-directives-plugin(get-disable-directives): getDisableDirectives:
  |   total: 20
  |   block: 8
  |   line: 4
  |   next-line: 4
  |   enable: 4
   ,-[files/test.js:2:1]
 1 | // oxlint-disable no-unused-vars
 2 | let a;
   : ^^^^^^
 3 | 
   `----

Found 0 warnings and 1 error.
Finished in Xms on 1 file with 97 rules using X threads.

stderr