Provides a React + ES6 ESLint configuration against Ascribe's JavaScript style guide.
As Airbnb graciously provides a default ESLint configuration (see here), we extend that and override it when our rules differ (for ES6 rules, we pass through the extended rules from our base eslint-config-ascribe config).
npm install --save-dev eslint-config-ascribe-react babel-eslint eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y eslint
Two configurations are exported:
Includes both ES6 and React configurations. To use, add "extends": "ascribe-react"
to your ESLint configuration:
{
"extends": "ascribe-react"
}
Includes just the React configuration. To use, add "extends": "ascribe-react/react-only"
to your ESLint configuration:
{
"extends": "ascribe-react/react-only"
}
Since this package is part of our styleguide repo, automating npm releases is tricky (can't have multiple Git tags in one repo etc.).
So for now it's all manual. Make sure to actually publish the respective package folder, not the whole repo by going into the package folder first:
cd packages/eslint-config-ascribe-react
# update version number in package.json, then:
git commit -am "Release 2.0.2"
npm publish