This package provides RdBird's ESLint configuration as an extensible shared config.
npm install \
eslint babel-eslint prettier \
@rdbird/eslint-config \
--save-dev
.eslintrc.json
{
"extends": [
"@rdbird/eslint-config"
]
}
OR
.eslintrc.json
{
"extends": [
"@rdbird/eslint-config/base",
"@rdbird/eslint-config/react",
"@rdbird/eslint-config/jsx-a11y",
"@rdbird/eslint-config/flowtype"
]
}
package.json
{
"scripts": {
"lint": "eslint .",
"format": "eslint . --fix"
}
}
For a better community alignment, the configuration extends StandardJS. Inspiration also comes from: