ESLint shareable config for ZeroTurnaround JavaScript projects.
$ npm install --save-dev eslint babel-eslint eslint-config-zt
// .eslintrc
{
"extends": "zt/base",
"rules": {
// Additional, per-project rules...
}
}
- Add additional dependency:
$ npm install --save-dev eslint-plugin-react
- Extend both
zt/base
andzt/react
.