eslint-plugin-github

2018-10-13 admin

eslint-plugin-github是什么

什么是eslint-plugin-github,An opinionated collection of ESLint shared configs and rules used by GitHub.

eslint-plugin-github使用教程帮助文档

eslint-plugin-github

Installation

$ npm install --save-dev eslint
$ npm install --save-dev eslint-plugin-github

Run initialization wizard.

$ node_modules/.bin/eslint-github-init

Set up npm run lint script.

{
  "private": true,
  "scripts": {
    "lint": "github-lint"
  }
}

The github-lint command will run eslint, flow and flow coverage checking depending on your project configuration.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-42572.html

文章标题:eslint-plugin-github

回到顶部