github-pages-deploy-action/node_modules/eslint-plugin-github/README.md

39 lines
634 B
Markdown
Raw Normal View History

2020-03-31 20:42:07 +08:00
# eslint-plugin-github
## Installation
```sh
2020-10-18 03:22:15 +08:00
$ npm install --save-dev eslint eslint-plugin-github
2020-03-31 20:42:07 +08:00
```
2020-10-18 03:22:15 +08:00
## Setup
2020-03-31 20:42:07 +08:00
2020-10-18 03:22:15 +08:00
Add `github` to your list of plugins in your ESLint config.
JSON ESLint config example:
```json
{
"plugins": ["github"]
}
2020-03-31 20:42:07 +08:00
```
2020-10-18 03:22:15 +08:00
Extend the configs you wish to use.
2020-03-31 20:42:07 +08:00
2020-10-18 03:22:15 +08:00
JSON ESLint config example:
2020-03-31 20:42:07 +08:00
```json
{
2020-10-18 03:22:15 +08:00
"extends": ["plugin:github/recommended"]
2020-03-31 20:42:07 +08:00
}
```
2020-10-18 03:22:15 +08:00
The available configs are:
- `app`
- Rules useful for github applications.
- `browser`
- Useful rules when shipping your app to the browser.
- `recommended`
- Recommended rules for every application.
- `typescript`
- Useful rules when writing TypeScript.