node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

eslint-config-ascribe-react

eslint-config-ascribe-react

npm

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).

Installation

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:

eslint-config-ascribe-react

Includes both ES6 and React configurations. To use, add "extends": "ascribe-react" to your ESLint configuration:

{
  "extends": "ascribe-react"
}

eslint-config-ascribe-react/react-only

Includes just the React configuration. To use, add "extends": "ascribe-react/react-only" to your ESLint configuration:

{
  "extends": "ascribe-react/react-only"
}

npm releases

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