ESLint shareable config for the Dalee IA style
$ npm install --save-dev eslint eslint-config-dalee
Create a eslint
configuration file that extends the package (.eslintrc.json
for example):
{
"extends": "eslint-config-dalee"
}
By default it lints against es5
rules. To enable es6
rules (inheriting es5
) use:
{
"extends": "eslint-config-dalee/es6"
}
Add a shortcut to package.json
:
{
"scripts": {
"lint": "eslint ."
}
}
And finally run it:
$ npm run lint