mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
28 lines
440 B
Markdown
28 lines
440 B
Markdown
# eslint-plugin-github
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
$ npm install --save-dev eslint
|
|
$ npm install --save-dev eslint-plugin-github
|
|
```
|
|
|
|
Run initialization wizard.
|
|
|
|
```sh
|
|
$ node_modules/.bin/eslint-github-init
|
|
```
|
|
|
|
Set up `npm run lint` script.
|
|
|
|
```json
|
|
{
|
|
"private": true,
|
|
"scripts": {
|
|
"lint": "github-lint"
|
|
}
|
|
}
|
|
```
|
|
|
|
The `github-lint` command will run `eslint`, `flow` and flow coverage checking depending on your project configuration.
|