Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to add Customized linting message on rules #23

Open
rainerhahnekamp opened this issue Aug 21, 2023 · 0 comments
Open

Possibility to add Customized linting message on rules #23

rainerhahnekamp opened this issue Aug 21, 2023 · 0 comments
Labels

Comments

@rainerhahnekamp
Copy link
Collaborator

It would be great, if we could optionally define custom error message, for a specific rules:

Example

export sheriffConfig = {
  // ...
  depRules: {
    'type:ui': {
      allow: ['type:model'],
      message: (to: string) => to === 'type:data' ? 'only container components in feature can access a data module' : 'access denied'
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant