Skip to content
An opinionated collection of ESLint shared configs and rules used by GitHub.
JavaScript
Branch: master
Clone or download

Latest commit

Latest commit 46b2170 Apr 3, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows don't test on macOS Nov 25, 2019
bin remove scripts Mar 19, 2020
docs/rules remove docs/configs.md Mar 19, 2020
lib turn off `interface-name-prefix` rule Apr 1, 2020
tests
.eslintrc.js
.flowconfig Add flowconfig Jan 13, 2018
.gitignore Check in package-lock file Aug 20, 2019
.prettierignore Format package json with npm, not prettier Apr 23, 2018
.travis.yml
CODEOWNERS Create CODEOWNERS Mar 19, 2020
LICENSE
README.md fix weird docs example Mar 19, 2020
package-lock.json
package.json 4.0.0-1 Apr 3, 2020

README.md

eslint-plugin-github

Installation

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

Setup

Add github to your list of plugins in your ESLint config.

JSON ESLint config example:

{
  "plugins": ["github"]
}

Extend the configs you wish to use.

JSON ESLint config example:

{
  "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.
You can’t perform that action at this time.