eslint-config-webkom
v1.4.1
Published
An extendable ESLint config
Readme
eslint-config-webkom
This package provides Webkom's version of Airbnb's .eslintrc as an extensible shared config. Note that eslint-config-webkom only works with ES6 projects that use Babel.
See Airbnb's Javascript styleguide and the ESLint config docs for more information.
Usage
Without React
ES6:
npm install --save-dev eslint-config-airbnb eslint-config-webkom babel-eslint- Add
"extends": "webkom"and"parser": "babel-eslint"to your .eslintrc
Example:
{
"extends": "webkom",
"parser": "babel-eslint"
}ES5:
npm install --save-dev eslint-config-airbnb eslint-config-webkom- ES5: Add
"extends": "webkom/legacy"to your .eslintrc
With React
npm install --save-dev eslint-config-airbnb eslint-config-webkom babel-eslint eslint-plugin-react- add
"extends": "webkom/react"to your .eslintrc
Airbnb changes
See base.js, react.js and legacy.js for the rule changes from
default Airbnb.
License
MIT
