4.0.0 • Published 3 years ago
@jchiam/eslint-config v4.0.0
ESLint Config
This is a shareable eslint config.
Usage
npm i -D @jchiam/eslint-configAdd .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": {}
}