eslint-config-lob

6.0.0 • Public • Published

eslint-config-lob

Shareable ESLint configuration for Lob repositories

Usage

  1. Install eslint and this module:
npm i eslint eslint-config-lob --save-dev
  1. Create an .eslintrc file in the root of your project with the following object:
{
  extends: "eslint-config-lob"
}

This will use the rules in eslint-config-lob's index.js. You can access rules in files other than eslint-config-lob's index.js via:

{
  extends: "eslint-config-lob/migrations"
}
  1. Use an .eslintignore file to specify files or directories that the linter should ignore. By default, eslint ignores the node_modules directory.
  2. Modify or create the npm lint script in the package.json to:
{
  "scripts": {
    "lint": "eslint ."
  }
}

This will lint every .js file in your project.

  1. Clean up any old lint or style tasks and config from your project.
  2. Don't forget to shrinkwrap before you commit your changes.

Contributing

Modifying or adding rules.

  • To add to the main rules, modify the index.js file.
  • To use most of the main rules but override some of them, create a new file in the root of this module, extend from index.js and add your overrides. See migrations.js for an example. If you're creating a file like this, its rules should be reusable and not a one-off. For example, you could create a file for angular rules. To make a one-off change, do so in your project's .eslintrc.

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-lob

Weekly Downloads

2,270

Version

6.0.0

License

MIT

Unpacked Size

13.2 kB

Total Files

9

Last publish

Collaborators

  • erik.forsman-lob
  • jkleung11
  • tanya.sah
  • hunteryoakum
  • rdimouro7373
  • lobstertroy
  • joshnkoy
  • michel_lob
  • haroutrs
  • kjones_lob
  • eamon-barisone
  • nathanielwaldschmidtlob
  • zach.reed
  • richpodrazalob
  • kencrim
  • jorgelob
  • nick-place-lob
  • andrew.guterres
  • ajorczak
  • hanqingchen-lob
  • juan.frissdekereki
  • mmorgan-lob
  • karankwatra-lob
  • joey-bates-lob
  • luke.birdeau
  • mg-lob
  • vmangwani
  • sachinlob
  • nick.perri
  • siddharthpant92
  • bethqiang
  • kplob
  • samkitsheth95
  • erin-doyle
  • rich_seviora_lob
  • jfdavidson
  • meussdorffer
  • shannamurry
  • davidnutting-lob
  • amaan_lob
  • team.platform.lob.com
  • elijah-lob
  • jlowsley-lob
  • barnabygo
  • james.cho
  • douglaje
  • lob-owner
  • graeme.lowe.lob