eslint-plugin-bpmn-io

June 2, 2026 ยท View on GitHub

CI

Common lint rules for bpmn.io projects.

Use

Extend one or more of our recommended configurations:

import bpmnIoPlugin from 'eslint-plugin-bpmn-io';

export default [
  ...bpmnIoPlugin.configs.recommended
]

If you use mocha for testing, add the mocha profile to your specs:

import bpmnIoPlugin from 'eslint-plugin-bpmn-io';

export default [
  ...bpmnIoPlugin.configs.browser,
  ...bpmnIoPlugin.configs.mocha.map(config => {
    return {
      ...config,
      files: [
        '**/*.spec.js'
      ]
    };
  })
]

Available Configurations

Base configurations:

  • browser: Use for browser based projects
  • node: Use for node based projects
  • recommended: Use for libraries where no environment is assumed

Special purpose configurations:

  • jsx: Use jsx in conjunction with browser
  • mocha: Use for libraries tested with mocha + chai
  • esm: Use for libraries where ESM is the target

License

MIT