# cherow-eslint

> Cherow parser for ESLint.

Latest version **0.4.1** (published 2018-06-11) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cherow-eslint
pnpm add cherow-eslint
yarn add cherow-eslint
bun add cherow-eslint
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.4.1 |
| Published | 2018-06-11 |
| First published | 2018-06-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pig Fang |
| Maintainers | gplane |
| Keywords | eslint, eslint-parser, javascript, esnext, parser, cherow |

## Links

- npm: https://www.npmjs.com/package/cherow-eslint
- Repository: https://github.com/cherow/cherow-eslint
- npm.io page: https://npm.io/package/cherow-eslint

## Dependencies (1)

- [cherow](https://npm.io/package/cherow.md) ^1.6.6

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.4.1 (latest) — 2018-06-11
- 0.4.0 — 2018-06-10
- 0.3.0 — 2018-06-09
- 0.2.0 — 2018-06-09
- 0.1.0 — 2018-06-09

## README

# cherow-eslint

[![Travis](https://img.shields.io/travis/cherow/cherow-eslint.svg?style=flat-square)](https://travis-ci.org/cherow/cherow-eslint)
[![NPM Version](https://img.shields.io/npm/v/cherow-eslint.svg?style=flat-square)](https://npmjs.com/package/cherow-eslint)
[![NPM Downloads](https://img.shields.io/npm/dm/cherow-eslint.svg?style=flat-square)](https://npmjs.com/package/cherow-eslint)

[Cherow](https://github.com/cherow/cherow) parser for ESLint.

**This package is still experimental.**

## Installation

Using Yarn:

```bash
yarn add --dev cherow-eslint
```

Using npm:

```bash
npm i --save-dev cherow-eslint
```

## Usage

Modify your ESLint configuration file:

```json
{
  "parser": "cherow-eslint"
}
```

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

```json
{
  "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:

```javascript
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](https://gplane.win/)

---
_Source: https://npm.io/package/cherow-eslint · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
