@westudents/eslint-config-node
v1.1.0
Published
Westudents node JS ESLint config, following our styleguide
Downloads
9
Readme
eslint-config-node
This package provides Westudents node .eslintrc as an extensible shared config.
Getting Started
Install
The package requires eslint
and some other dependencies to work, which you can list via:
npm info "@westudents/eslint-config-node@latest" peerDependencies
If using npm 5+, use this shortcut:
npx install-peerdeps --dev @westudents/eslint-config-node
If using npm < 5, Linux/OSX users can run
(
export PKG=eslint-config-airbnb-base;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
If using npm < 5, Windows users can either install all the peer dependencies manually, or use the install-peerdeps cli tool.
npm install -g install-peerdeps
install-peerdeps --dev eslint-config-airbnb-base
Usage
Add "extends": "@westudents/node"
to your .eslintrc as follows
{
"extends": "@westudents/node"
}
Badge
Feel free to add this badge to your README file.
[![javascript style guide](https://img.shields.io/badge/code_style-standard--westudents-orange.svg)](https://github.com/westudents/eslint-config-node)