# eslint-plugin-jsx

> JSX specific linting rules for ESLint

Latest version **0.1.0** (published 2019-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-jsx
pnpm add eslint-plugin-jsx
yarn add eslint-plugin-jsx
bun add eslint-plugin-jsx
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-07-18 |
| First published | 2015-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Jake Rosoman |
| Maintainers | jkroso |
| Keywords | eslint, plugin, jsx |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-jsx
- Repository: https://github.com/jkroso/eslint-plugin-jsx
- Homepage: https://github.com/jkroso/eslint-plugin-jsx#readme
- Issues: https://github.com/jkroso/eslint-plugin-jsx/issues
- npm.io page: https://npm.io/package/eslint-plugin-jsx

## Dependencies (3)

- [svg-tags](https://npm.io/package/svg-tags.md) 1
- [html-tags](https://npm.io/package/html-tags.md) 1
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) 3.4.2

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2019-07-18
- 0.0.2 — 2016-01-02
- 0.0.1 — 2015-10-10
- 0.0.0 — 2015-09-21

## README

# eslint-plugin-jsx

JSX specific linting rules for ESLint. Designed for the semantics of the [JSX-to-JS](//github.com/jkroso/JSX-to-JS) transpiler and is not compatible with the standard JSX semantics.

## Installation

You need to install this plugin in the same place eslint itself is installed. So if your using a globally installed eslint this will also need to be installed globally

`npm install -g eslint-plugin-jsx`

then in your ~/.eslintrc:

```json
{
  "plugins": ["jsx"],
  "rules": {
    "jsx/uses-factory": [1, {"pragma": "JSX"}],
    "jsx/factory-in-scope": [1, {"pragma": "JSX"}],
    "jsx/mark-used-vars": 1,
    "jsx/no-undef": 1
  }
}
```

`jsx/no-undef` also accepts a `varsIgnorePattern` which can be used to ignore certain undefined patterns (e.g. when using custom web elements).

`jsx/no-undef` also accepts a `ignoreAttributes` which can be used disregard linting of attributes (which incorrectly flags boolean attributes as undefined).

All those rules are defined by default though so you can leave out the ones you agree with.

## Thanks

This project is based of [yannickcr/eslint-plugin-react](//github.com/yannickcr/eslint-plugin-react). Which has some rules you will probably also be interested in.

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