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

https://github.com/johnapache/eslint-config-react

eslint-config-react for hasaki-cli
https://github.com/johnapache/eslint-config-react

eslint eslint-config eslint-config-react eslint-config-react-hooks

Last synced: 3 months ago
JSON representation

eslint-config-react for hasaki-cli

Awesome Lists containing this project

README

        

# EsLint-Config-React

- [English](README.en_US.md)
- [简体中文](README.md)

> This configuration is the general configuration of eslint for **React** project, which is applicable to any basic configuration of the project, and provides a good automatic repair effect.

- [Install](#install)
- [Configuration](#configuration)
- [TIPS](#tips)
- [Questions](#questions)
- [License](#license)

## Install
```bash
$ npx install-peerdeps --dev @dking/eslint-config-react
```

## Configuration

```js
// .eslintrc.js
module.exports = {
extends: [ '@dking/react' ],
rules: {

}
}
```

## TIPS

> You can use different eslint config for different types of projects to get a better experience

- Only projects requiring basic configuration can use [@dking/eslint-config-base](https://github.com/JohnApache/eslint-config-base)
- Projects using **Typescript** can use [@dking/eslint-config-typescript](https://github.com/JohnApache/eslint-config-typescript)
- Projects that use **React** can use [@dking/eslint-config-react](https://github.com/JohnApache/eslint-config-react)
- Projects that use **Typescript** and **React** can use [@dking/eslint-config-typescript-react](https://github.com/JohnApache/eslint-config-typescript-react)

## Questions
Please open an issue [here](https://github.com/JohnApache/eslint-config-react/issues).

## License

[MIT](LICENSE)