2.0.0 • Published 7 years ago

eslint-config-janiskra v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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"
}