eslint-config-ascribe-react

2.0.4 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i eslint-config-ascribe-react

Weekly Downloads

0

Version

2.0.4

License

Apache-2.0

Last publish

Collaborators

  • kremalicious
  • vrde
  • sohkai
  • diminator