bpmn-js-bpmnlint
bpmn-js integration for bpmnlint
Last updated 10 months ago by nikku .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bpmn-js-bpmnlint 
SYNC missed versions from official npm registry.

bpmn-js-bpmnlint

Build Status

Integrates bpmnlint into bpmn-js.

Screenshot

See this extension in action as part of the bpmnlint playground.

Usage

Integrate the linter into bpmn-js:

import lintModule from 'bpmn-js-bpmnlint';

import BpmnModeler from 'bpmn-js/lib/Modeler';

import bpmnlintConfig from './.bpmnlintrc';

var modeler = new BpmnModeler({
  linting: {
    bpmnlint: bpmnlintConfig
  },
  additionalModules: [
    lintModule
  ]
});

Bundle Lint Rules

Use an appropriate plugin/loader for your module bundler (cf. rollup-plugin-bpmnlint, bpmnlint-loader) to bundle the bpmnlint configuration directly with your application as shown above.

Alternatively, pack your local .bpmnlintrc file using the bpmnlint-pack-config utility:

bpmnlint-pack-config -c .bpmnlintrc -o bundled-config.js

Plug-in Lint Rules

Provide the packed lint rules via the linting.bpmnlint option. You may set it dynamically, too:

var linting = modeler.get('linting');

linting.setLinterConfig(bpmnlintConfig);

Resources

Development Setup

npm install
npm run dev

License

MIT

Current Tags

  • 0.15.0                                ...           latest (a month ago)

30 Versions

  • 0.15.0                                ...           a month ago
  • 0.14.0                                ...           4 months ago
  • 0.13.1                                ...           9 months ago
  • 0.13.0                                ...           9 months ago
  • 0.12.4                                ...           9 months ago
  • 0.12.3                                ...           9 months ago
  • 0.12.2                                ...           9 months ago
  • 0.12.1                                ...           9 months ago
  • 0.12.0                                ...           10 months ago
  • 0.11.1                                ...           10 months ago
  • 0.11.0                                ...           10 months ago
  • 0.10.1                                ...           a year ago
  • 0.10.0                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.1                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.3                                ...           2 years ago
  • 0.5.2                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 3
This Month 5
Last Day 3
Last Week 1
Last Month 27
Dependencies (2)
Dev Dependencies (20)

Copyright 2014 - 2017 © taobao.org |