1.1.0 • Published 6 years ago

@joyeecheung/eslint-config-node-core v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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"
    }