mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-08-25 08:08:00 +00:00
1ada95e04a
- Convert project to Javascript/Typescript - Allow custom headers to be passed in (optional) - Allow body to be optional
39 lines
634 B
Markdown
39 lines
634 B
Markdown
# eslint-plugin-github
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
$ npm install --save-dev eslint eslint-plugin-github
|
|
```
|
|
|
|
## Setup
|
|
|
|
Add `github` to your list of plugins in your ESLint config.
|
|
|
|
JSON ESLint config example:
|
|
```json
|
|
{
|
|
"plugins": ["github"]
|
|
}
|
|
```
|
|
|
|
Extend the configs you wish to use.
|
|
|
|
JSON ESLint config example:
|
|
```json
|
|
{
|
|
"extends": ["plugin:github/recommended"]
|
|
}
|
|
```
|
|
|
|
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.
|