https://github.com/bpmn-io/eslint-plugin-bpmn-io
Common lint rules for bpmn.io projects
https://github.com/bpmn-io/eslint-plugin-bpmn-io
Last synced: 1 day ago
JSON representation
Common lint rules for bpmn.io projects
- Host: GitHub
- URL: https://github.com/bpmn-io/eslint-plugin-bpmn-io
- Owner: bpmn-io
- License: mit
- Created: 2018-02-14T12:30:38.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T13:33:58.000Z (4 months ago)
- Last Synced: 2025-04-15T10:05:22.882Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 636 KB
- Stars: 3
- Watchers: 7
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bpmn-io - eslint-plugin-bpmn-io - Common lint rules for bpmn.io projects (Extensions)
README
# eslint-plugin-bpmn-io
[](https://github.com/bpmn-io/eslint-plugin-bpmn-io/actions?query=workflow%3ACI)
Common lint rules for [bpmn.io](https://bpmn.io) projects.
## Use
Extend one or more of our recommended configurations:
```javascript
import bpmnIoPlugin from 'eslint-plugin-bpmn-io';export default [
...bpmnIoPlugin.configs.recommended
]
```If you use [mocha](https://mochajs.org/) for testing, add the mocha profile to your specs:
```javascript
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 assumedSpecial purpose configurations:
* `jsx`: Use `jsx` in conjunction with `browser`
* `mocha`: Use for libraries tested with `mocha` + `chai`## License
MIT