Network Performance Monitor
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

cherow-eslint

0.4.1 • Public • Published

cherow-eslint

Travis NPM Version NPM Downloads

Cherow parser for ESLint.

This package is still experimental.

Installation

Using Yarn:

yarn add --dev cherow-eslint

Using npm:

npm i --save-dev cherow-eslint

Usage

Modify your ESLint configuration file:

{
  "parser": "cherow-eslint"
}

Note that if you are using vue-eslint-parser, you should update your configuration file like this:

{
  "parser": "vue-eslint-parser",
  "parserOptions": {
    "parser": "cherow-eslint"
  }
}

Known Issues

Cherow doesn't provide official tokenizer, so there are some problems with tokenizing:

  • An error will be thrown when parsing string template with expressions, like this:
const s = `value: ${1 + 2}`
  • The tokenizer cannot detect an identifier as JSXIdentifier in JSX. That is, the JSXIdentifier token will be treated as normal Identifier.

Reporting Bugs

You should provide these information for reproduction:

  • ESLint version
  • cherow-eslint version
  • Your ESLint configuration
  • Your code and the error output

License

MIT Licensed

Copyright © 2018-present Pig Fang

install

npm i cherow-eslint

Downloadsweekly downloads

3

version

0.4.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability