Custom config that extends wpcalypso.
eslint 4+
Using npm:
npm install --save-dev github:moderntribe/eslint-config-products
# Target branch or release:
# npm install --save-dev github:moderntribe/eslint-config-products#branch-name
# npm install --save-dev github:moderntribe/eslint-config-products#v0.0.1
Using yarn:
yarn add --dev github:moderntribe/eslint-config-products
# Target branch or release:
# yarn add --dev github:moderntribe/eslint-config-products#branch-name
# yarn add --dev github:moderntribe/eslint-config-products#v0.0.1
In the root directory, add in an .eslintrc
file.
{
extends: 'products'
}
Update .eslintrc
to:
{
extends: 'products/react'
}
npm version patch|minor|major
git push --follow-tags