Natively Pronounced Mandarin
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

eslint-config-humanmade

0.5.0 • Public • Published

eslint-config-humanmade

Human Made coding standards for JavaScript.

We highly recommend using this via the humanmade/coding-standards Composer package..

Installation

This package is an ESLint shareable configuration, and requires babel-eslint, eslint, eslint-config-react-app, eslint-plugin-flowtype, eslint-plugin-import, eslint-plugin-jsx-a11y, eslint-plugin-react.

To install this config and the peerDependencies:

npm info "eslint-config-humanmade@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "eslint-config-humanmade@latest"

(Thanks to Airbnb's package for the command.)

You can then use it directly on the command line:

eslint -c humanmade MyFile.js

Alternatively, you can create your own configuration and extend these rules:

extends:
- humanmade

Global Installation

When installing globally, you need to ensure the peer dependencies are also installed globally.

Run the same command as above, but with -g added:

npm info "eslint-config-humanmade@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "eslint-config-humanmade@latest"

This allows you to use eslint -c humanmade MyFile.js anywhere on your filesystem.

Keywords

none

install

npm i eslint-config-humanmade

Downloadsweekly downloads

825

version

0.5.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability