1.2.0 • Published 6 years ago

eslint-config-emplify-react-web v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

This README assumes you are using npm 3.

Installation

npm install eslint-config-emplify-react-web --save-dev

Usage

Create a file in the root directory of your project called .eslintrc.js. Fill it out like this:

module.exports = {
  extends: 'eslint-config-emplify-react-web',
  rules: {
    // Project-specific overrides, if any
  }
}

Add a new script to your package.json. For instance, if you want to lint all the JS in the src directory.

{
  "scripts": {
    "lint": "eslint src"
  }
}

Then, from the command line: npm run lint.