2.0.0 • Published 9 years ago

eslint-config-janiskra v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 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"
}
2.0.0

9 years ago

1.10.1

9 years ago

1.10.0

9 years ago

1.9.1

9 years ago

1.9.0

9 years ago

1.8.0

9 years ago

1.7.0

9 years ago

1.6.0

9 years ago

1.5.0

9 years ago

1.4.0

10 years ago

1.3.3

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago