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.
- Host: GitHub
- URL: https://github.com/dogma-io/eslint-plugin-react-compat
- Owner: dogma-io
- License: mit
- Created: 2018-01-30T15:30:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:50:51.000Z (over 2 years ago)
- Last Synced: 2025-02-13T19:49:52.977Z (4 months ago)
- Topics: compat, compatibility, eslint, eslint-plugin, inferno, javascript, js, lint, linter, linting, preact, react
- Language: JavaScript
- Size: 1.55 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
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/