Skip to content

Consider using ESLint rule: default-case #34

@Nantris

Description

@Nantris

Do you want to request a feature or report a bug?

Feature (DevOps)

What's the current behavior?

Switch statements do not require a default case

What's the expected behavior?

If the past when returning undefined moved through the plugin stack this would definitely be overkill, but it might be worth considering now.

If we require a default case, it would probably help with ensuring that we are always returning next() where needed - This might be worth implementing in Slate itself as well with the recent changes.

https://eslint.org/docs/rules/default-case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions