eslint-config-webkom

1.4.1 • Public • Published

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:

  1. npm install --save-dev eslint-config-airbnb eslint-config-webkom babel-eslint
  2. Add "extends": "webkom" and "parser": "babel-eslint" to your .eslintrc

Example:

{
  "extends": "webkom",
  "parser": "babel-eslint"
}

ES5:

  1. npm install --save-dev eslint-config-airbnb eslint-config-webkom
  2. ES5: Add "extends": "webkom/legacy" to your .eslintrc

With React

  1. npm install --save-dev eslint-config-airbnb eslint-config-webkom babel-eslint eslint-plugin-react
  2. 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

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-webkom

Weekly Downloads

25

Version

1.4.1

License

MIT

Last publish

Collaborators

  • webkom