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.
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
See examples.
-
Install the peer dependencies
npm install --save-dev eslint eslint-plugin-markdown babel-eslint @joyeecheung/eslint-plugin-node-core
-
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" }