Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 861 Bytes

configs.md

File metadata and controls

35 lines (21 loc) · 861 Bytes

Configs

This ESLint plugin comes with a few configuration presets. After installing the package, the recommended set of rules can be enabled with:

.eslintrc.json

{
  "extends": ["plugin:github/recommended"]
}

When setting up a new project, it's recommended that you use the initialization to generate a customized ESLint config for the project.

$ node_modules/.bin/eslint-github-init

Available Configs

plugin:github/recommended

A base layer of configuration recommended for any JS project. The Prettier formatter is used to format code.

plugin:github/es6

Recommended rules when using Babel to transpile features from ES2015+.

plugin:github/app

Recommended rules when writing a browser application.

plugin:github/node

Recommended rules when writing a node application.