Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bpmn-io/feel-lint

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bpmn-io/feel-lint

Linter for FEEL expressions.

  • 1.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.5K
decreased by-53.42%
Maintainers
0
Weekly downloads
 
Created
Source

@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

Keywords

FAQs

Package last updated on 26 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc