An open API service indexing awesome lists of open source software.

https://github.com/dogma-io/eslint-plugin-react-compat

Make sure your React code is compatible with Inferno and Preact.
https://github.com/dogma-io/eslint-plugin-react-compat

compat compatibility eslint eslint-plugin inferno javascript js lint linter linting preact react

Last synced: about 1 month ago
JSON representation

Make sure your React code is compatible with Inferno and Preact.

Awesome Lists containing this project

README

        

# eslint-plugin-react-compat [![NPM][npm-img]][npm-url] [![Coverage][cov-img]][cov-url]

Make sure your [React][react-url] code is compatible with [Inferno][inferno-url] and [Preact][preact-url].

## Table of Contents

* [Installation](#installation)
* [Documentation](#documentation)
* [Code of Conduct](#code-of-conduct)
* [Contributing](#contributing)
* [License](#license)

## Installation

**npm**

```bash
npm install eslint-plugin-react-compat
```

**yarn**

```bash
yarn add eslint-plugin-react-compat
```

## Documentation

Add the following to your [ESLint configuration file][eslint-config-url]:

```js
{
"extends": ["plugin:react-compat/recommended"],
"plugins": ["react-compat"]
}
```

## Code of Conduct

Please see the [code of conduct](CODE_OF_CONDUCT.md).

## Contributing

Please see the [contributing guide](CONTRIBUTING.md).

## License

[MIT](LICENSE.md)

[cov-img]: https://img.shields.io/codecov/c/github/dogma-io/eslint-plugin-react-compat.svg "Code Coverage"
[cov-url]: https://codecov.io/gh/dogma-io/eslint-plugin-react-compat

[eslint-config-url]: https://eslint.org/docs/user-guide/configuring
[inferno-url]: https://infernojs.org/

[npm-img]: https://img.shields.io/npm/v/eslint-plugin-react-compat.svg "NPM Version"
[npm-url]: https://www.npmjs.com/package/eslint-plugin-react-compat

[preact-url]: https://preactjs.com/
[react-url]: https://reactjs.org/