Skip to content

can't get plugin rules by CLIEngine#getRules #11871

Closed
@fisker

Description

@fisker

Tell us about your environment

  • ESLint Version:
    6.0.0

cli.getRules().get(ruleId) used can get plugin rule, now not.

Is this by design or a bug?

new (require('eslint').CLIEngine)().getRules().has('yoda')
// -> true
new (require('eslint').CLIEngine)({plugins: ['unicorn']}).getRules().has('unicorn/no-process-exit')
// -> false, should be true

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlycoreRelates to ESLint's core APIs and featuresregressionSomething broke

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions