Closed nzakas closed 3 months ago
Add Directive class to @eslint/plugin-kit. (Extracted from the core.)
Directive
@eslint/plugin-kit
SourceCode#getDisableDirectives()
DirectiveType
@eslint/core
Directive#node
unknown
object
Oops, correct!
Prerequisites checklist
What is the purpose of this pull request?
Add
Directive
class to@eslint/plugin-kit
. (Extracted from the core.)What changes did you make? (Give an overview)
Directive
class to@eslint/plugin-kit
to be used when implementingSourceCode#getDisableDirectives()
DirectiveType
type to@eslint/core
Directive#node
to be typeunknown
instead ofobject
to force consumers to type cast the value before using it.Directive
Related Issues
Is there anything you'd like reviewers to focus on?