Skip to content

feat(linter/plugins): expose SourceCode.getDisableDirectives() method#21029

Open
KuSh wants to merge 1 commit intooxc-project:mainfrom
KuSh:get-disable-directives
Open

feat(linter/plugins): expose SourceCode.getDisableDirectives() method#21029
KuSh wants to merge 1 commit intooxc-project:mainfrom
KuSh:get-disable-directives

Conversation

@KuSh
Copy link
Copy Markdown
Contributor

@KuSh KuSh commented Apr 4, 2026

Used by eslint-plugin-unicorn

It crashes when trying to use it through jsPlugins (for unicorn/expiring-todo-comments)

ESLint documentation says its optional but unicorn doesn't seem to guard against its absence

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins C-enhancement Category - New feature or request labels Apr 4, 2026
@KuSh KuSh force-pushed the get-disable-directives branch 4 times, most recently from 9d9ee06 to 91545c1 Compare April 4, 2026 02:04
@KuSh KuSh changed the title feat(linter/plugins): expose sourceCode.getDisableDirectives() method feat(linter/plugins): expose SourceCode.getDisableDirectives() method Apr 4, 2026
@KuSh KuSh force-pushed the get-disable-directives branch from 91545c1 to 053bc11 Compare April 4, 2026 02:10
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
@KuSh KuSh force-pushed the get-disable-directives branch from 053bc11 to 41e1f45 Compare April 7, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants