Skip to content

Improve error handling for misconfigured instances #835

Open
@byCedric

Description

@byCedric

Expected Behavior

While developing new rules, as plugin for example, it might be wise to have some improved error handling. As you can see here, the current error is a syntax error without additional info on what or where it went wrong.

I think this could also benefit other use cases like misconfigured rule settings or config in general. ESLint has some good examples for us to look at, like this one for example.

.eslintrc.js:
        Configuration for rule "semi" is invalid:
        Severity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '"wrong level"').

It's a rule with the wrong severity level, clearly indicating what is wrong and how to fix it.

Current Behavior

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions