An opinionated list of ESLint rules used at Delaware Consulting.
Installation
npm install --save-dev eslint eslint-plugin-import eslint-config-dlw
Then add the extends to your .eslintrc
:
{
"extends": "dlw",
"rules": {
// your overrides
}
}
React configuration
For supporting React projects, also add the dlw/rules/react extension:
{
"extends": [
"dlw",
"dlw/rules/react"
]
}
Then install eslint-plugin-react
:
npm install --save-dev eslint-plugin-react
LICENSE
MIT