@joyeecheung/eslint-config-node-core

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @joyeecheung/eslint-config-node-core

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • joyeecheung