1.0.3 • Published 4 years ago

@westudents/eslint-config-react v1.0.3

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

eslint-config-react

javascript style guide NPM version

This package provides Westudents ReactJS .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-react@latest" peerDependencies

If using npm 5+, use this shortcut:

npx install-peerdeps --dev @westudents/eslint-config-react

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/eslint-config-react" to your .eslintrc as follows

{
    "extends": "@westudents/eslint-config-react"
}

Badge

Feel free to add this badge to your README file.

javascript style guide

[![javascript style guide](https://img.shields.io/badge/code_style-standard--westudents-orange.svg)](https://github.com/westudents/eslint-config-node)