bpmn-io / bpmnlint

Validate BPMN diagrams based on configurable lint rules.
MIT License
125 stars 37 forks source link

Support scoped packages #35

Closed patoncrispy closed 5 years ago

patoncrispy commented 5 years ago

We are using GitHub Registry which currently only supports scoped packages. As a result, none of our packages can start with bpmnlint-plugin-. Is it possible to allow packages that are scoped, but start with that rule? An example would be @myorg/bpmlint-plugin-my-org-rules.

patoncrispy commented 5 years ago

I believe this regex (based on package.json requirements) would work: ^(?:@[a-z0-9-~][a-z0-9-._~]*\/)?bpmnlint-plugin-[a-z0-9-._~]+$.