Skip to content

Sharable ESLint configurations following the style guide of Node.js core

Notifications You must be signed in to change notification settings

joyeecheung/eslint-config-node-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-node-core

Sharable ESLint configurations following the style guide of Node.js core.

Original source code comes from the nodejs/node repo.

Depends on @joyeecheung/eslint-plugin-node-core.

Update

This project is generated with update.js.

git clone git@github.com:joyeecheung/eslint-config-node-core.git
cd eslint-config-node-core.git
npm install
# Generates base.json and lib.json
./update.js /path/to/node/project

Usage

See examples.

  1. Install the peer dependencies

    npm install --save-dev eslint eslint-plugin-markdown babel-eslint @joyeecheung/eslint-plugin-node-core
    
  2. In your .eslintrc.json (or .eslintrc.yaml, then you would need to use the yaml syntax for the configurations).

    {
      "extends": "@joyeecheung/eslint-config-node-core"
    }

    Or if you want to use the styles of the lib/ directory in Node.js core:

    {
      "extends": "@joyeecheung/eslint-config-node-core/lib"
    }

About

Sharable ESLint configurations following the style guide of Node.js core

Resources

Stars

Watchers

Forks

Packages

No packages published