eslint-config-janiskra

2.0.0 • Public • Published

eslint-config-janiskra

My custom eslint rules, extending the eslint-config-airbnb.

Rules

"rules": {
    "async-await/space-after-async": ["error", "always"],
    "async-await/space-after-await": ["error", "always"],
    "comma-dangle": ["error", "never"],
    "object-curly-spacing": ["error", "always"],
    "object-shorthand": ["error", "never"],
    "space-before-function-paren": ["error", "always"]
}

I use the async-await and no-inferred-method-name plugins for enforcing spaces after the async/await keywords and disallowing anonymous inner functions.

Installation

npm install --save-dev eslint eslint-config-enpit-jet

Usage

There are three versions, base, node and react. For now, the main difference is that the base and nodejs configs extend airbnb/base while the react config extends airbnb (i.e. it uses all the react stuff that you do not need for, say, a nodejs project).

base

.eslintrc:

{
    "extends": "eslint-config-janiskra/base"
}

react

.eslintrc:

{
    "extends": "eslint-config-janiskra/react"
}

node

.eslintrc:

{
    "extends": "eslint-config-janiskra/node"
}

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-janiskra

Weekly Downloads

3

Version

2.0.0

License

MIT

Last publish

Collaborators

  • janis-kra