0.0.4 • Published 7 years ago
eslint-config-salak v0.0.4
eslint-config-salak
Opinionated style rules for ESLint.
How to use
Prerequisites: You are expected to have ESLint installed, and means to run it.
Steps to use:
Install
eslint-config-salak
npm install --save-dev eslint-config-salak babel-eslint eslint-plugin-react
Create
.eslintrc
file in your project root, and add the following code in it:{ "extends": "salak" }
There are additional configs in salak that you can use:
es
- es6 and es7 specific rulesgeneral
- general ruleserror
- error rulesnode
- node specific rulesbrowser
- browser specific rulesjson
- json specific rulesreact
- react specific rules
Salak automatically uses es
, error
and general
.
If you want to use any of the other rules, you can define so in .eslintrc
:
{
"extends": [
"salak/es",
"salak/react"
]
}