1.1.0 • Published 8 years ago
@comparaonline/eslint-config-react v1.1.0
eslint-config-react
The ComparaOnline linter shareable configuration for React apps.
Installation
First, you need eslint, if it isn't installed yet...
$ yarn add --dev eslintThen,
$ yarn add --dev @comparaonline/eslint-config-reactUsage
Add this package into the extends section of your .eslintrc.js file.
{
extends: '@comparaonline/eslint-config-react'
}Now you can execute eslint in a npm script, as example:
"scripts": {
"lint:js": "eslint 'app/**/*.js'"
}