eslint-config-kbshl

2.0.1 • Public • Published

eslint-config-kbshl

Commitizen friendly NPM NPM total downloads NPM license GitHub stars

ESLint > shareable config for my Javascript based projects - Mobile and Web

Installation

npm install --save-dev eslint-config-kbshl

Usage

Once the eslint-config-kbshl package is installed, you can use it by specifying ksbhl in the extends section of your ESLint configuration.

{
  "extends": "kbshl",
  "rules": {
    // Additional, per-project rules...
  }
}

Notes

Please note that most of the stylistic rules are disabled cause I use prettier to format my code. Therefore the eslint-config-prettier is included.

Provided configurations

The default config actually is composed of several configurations and you can use those individually. These are the configs it's using:

You can use each of these configs yourself. Also, the es6, import, promise, security configs each have a possible-errors.js, best-practices.js (and stylistic.js) which they are composed of as well.

Optional configurations

Other configs are exposed also. You can use them standalone:

{
  "extends": "kbshl/<config-name>"
}

or in combination with the base config (recommended):

{
  "extends": [
    "kbshl",
    "kbshl/<config-name>"
  ]
}

Things to know

  • All plugins needed for rules used by these configs are dependencies of this module so you don't have to install anything on your own.
  • Almost all of the stylistic rules are disabled cause I use prettier to format my code. To ensure this the eslint-config-prettier is included too.

ESLint Dependencies

License

MIT © Konstantin Büschel

Package Sidebar

Install

npm i eslint-config-kbshl

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

52 kB

Total Files

39

Last publish

Collaborators

  • kbshl