Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zhike-team/eslint-config-zhike-react


https://github.com/zhike-team/eslint-config-zhike-react

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

# eslint-config-zhike-react

## React eslint rules for zhike

![codestyle](https://img.shields.io/badge/codestyle-%40zhike%2Freact-green.svg)
![travis](https://travis-ci.org/zhike-team/eslint-config-zhike-react.svg?branch=master)
![npm](https://img.shields.io/npm/v/@zhike/eslint-config-react.svg)
![npm](https://img.shields.io/npm/v/@zhike/eslint-config-react/next.svg)
![npm](https://img.shields.io/npm/l/@zhike/eslint-config-react.svg)
![npm](https://img.shields.io/npm/dm/@zhike/eslint-config-react.svg)

[![GitHub forks](https://img.shields.io/github/forks/zhike-team/eslint-config-zhike-react.svg?style=social&label=Fork)](https://github.com/zhike-team/eslint-config-zhike-react/fork)
[![GitHub stars](https://img.shields.io/github/stars/zhike-team/eslint-config-zhike-react.svg?style=social&label=Star)](https://github.com/zhike-team/eslint-config-zhike-react)

### An ESLint [Shareable Config](http://eslint.org/docs/developer-guide/shareable-configs) for [Zhike Team](https://github.com/zhike-team) react projects

## Install

```bash
npm install --save-dev @zhike/eslint-config-react
```

or

```bash
yarn add -D @zhike/eslint-config-react
```

## Usage

Shareable configs are designed to work with the `extends` feature of `.eslintrc` files.
You can learn more about
[Shareable Configs](http://eslint.org/docs/developer-guide/shareable-configs) on the
official ESLint website.

To use the Zhike JavaScript Style shareable config, first run this:

```bash
npm install --save-dev @zhike/eslint-config-react\
@zhike/eslint-config\
eslint-config-standard\
eslint-config-standard-react\
eslint-plugin-standard\
eslint-plugin-promise\
eslint-plugin-import\
eslint-plugin-react\
eslint-plugin-node\
eslint
```

Then, add this to your .eslintrc file:

```json
{
"extends": "@zhike/eslint-config-react"
}
```

You can override settings from the shareable config by adding them directly into your
`.eslintrc` file.

## Badge

You can add a badge to your README.md file now.

With code:

```markdown
![codestyle](https://img.shields.io/badge/codestyle-%40zhike%2Freact-green.svg)
```

It looks like ![codestyle](https://img.shields.io/badge/codestyle-%40zhike%2Freact-green.svg)

## Contribute

[Contribute Guide](./CONTRIBUTING.md)

## License

MIT. Copyright (c) [Zhike](http://www.smartstudy.com).