@jchiam/eslint-config
v4.0.0
Published
my personal ESLint rules
Downloads
4
Readme
ESLint Config
This is a shareable eslint config.
Usage
npm i -D @jchiam/eslint-config
Add .eslintrc
to project.
{
"extends": [
"@jchiam/eslint-config/recommended",
"@jchiam/eslint-config/react"
]
"rules": {}
}
Override rules as needed in local .eslintrc
.
Breaking Changes
v3 to v4
The original config file has been split from index.js
to recommended.js
and react.js
. Extending both config files is equivalent to the original usage. This was done to allow for non-React projects to extend only the base config file to avoid any React-related warnings from ESLint.
From:
{
"extends": "@jchiam",
"rules": {}
}
To:
{
"extends": [
"@jchiam/eslint-config/recommended",
"@jchiam/eslint-config/react"
]
"rules": {}
}