@bpmn-io/feel-lint

1.2.0 • Public • Published

@bpmn-io/feel-lint

CI

Linting for FEEL expressions.

Usage

There are 2 ways to use this library:

Linting string expressions

The lintExpression function takes a string expression and returns a list of linting errors.

import { lintExpression } from "@bpmn-io/feel-lint"

lintExpression('foo = bar');

Codemirror plugin

The cmFeelLinter function returns a codemirror linting source that you can use as a extension in you codemirror instance.

import { cmFeelLinter } from "@bpmn-io/feel-lint"
import { linter } from '@codemirror/lint';

// ...

const myEditor = new EditorView({
    state: EditorState.create({
      doc: '',
      extensions: [
        linter(cmFeelLinter())
      ]
    })
  });

Hacking the Project

To get the development setup make sure to have NodeJS installed. As soon as you are set up, clone the project and execute

npm install
npm run dev

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @bpmn-io/feel-lint

Weekly Downloads

16,770

Version

1.2.0

License

MIT

Unpacked Size

8.69 kB

Total Files

5

Last publish

Collaborators

  • vsgoulart
  • skaiir-camunda
  • marstamm
  • bpmn-io-admin
  • nikku
  • barmac
  • philippfromme
  • maxtru