bpmn-io / bpmnlint

Validate BPMN diagrams based on configurable lint rules.
MIT License
121 stars 36 forks source link

Be Able to Configure Rules #78

Closed philippfromme closed 2 years ago

philippfromme commented 2 years ago

Is your feature request related to a problem? Please describe

Rules cannot be configured at the moment. In eslint this is possible allowing for the reuse of configurable rules.

Describe the solution you'd like

An example of a configuration:

module.exports = {
  configs: {
    'foo': {
      rules: {
        'bar': [ 'error', {
          types: [ 'bpmn:ServiceTask' ]
        } ]
      }
    }
  }
};

Describe alternatives you've considered

Alternatively, rules with different configurations can be created as separate files. However, this would not be my preferred solution.