Common lint rules for bpmn.io projects.
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'
]
};
})
]
Base configurations:
browser
: Use for browser based projectsnode
: Use for node based projectsrecommended
: Use for libraries where no environment is assumed
Special purpose configurations:
jsx
: Usejsx
in conjunction withbrowser
mocha
: Use for libraries tested withmocha
+chai
MIT