eslint-config-videoamp-react

3.1.0 • Public • Published

eslint-config-videoamp-react

Build Status npm version

This package uses ESLint to enforce VideoAmp's code style and provides an extended configuration of our base rules (found at eslint-config-videoamp) for our React.js projects.

If you are looking for our extended configuration for Node.js projects, see eslint-config-videoamp-node.

Install

yarn

yarn add --dev eslint-config-videoamp-react eslint

npm

npm install --save-dev eslint-config-videoamp-react eslint

Usage

Add "extends": "videoamp-react" to your .eslintrc.

Configuration for Webpack

Below is an example .eslintrc configured to work with Webpack module resolution:

{
    "extends": ["videoamp-react"],
    "settings": {
        "import/resolver": {
            "webpack": {
                "config": "<PATH_TO_WEBPACK_CONFIG>"
            }
        }
    }
}
 

Resources

Contributing

You can make sure this module lints with itself using yarn lint.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-videoamp-react

Weekly Downloads

6

Version

3.1.0

License

Apache-2.0

Last publish

Collaborators

  • hectorsahagun
  • videoamp-webmaster
  • davidung
  • bvamp
  • jadengore