1.8.0 • Published 8 years ago
eslint-config-hmh-mtl v1.8.0
HMH Montreal JavaScript Style Guide
This package provides Montreal team's Eslint configuration file as an extensible shared config.
Requirements
- NodeJS version 8 LTS or higher
- ESLint version 3 or higher
Installation
Install ESlint
npm install -D eslintInstall ESLint plugins
npm install -D eslint-plugin-promise eslint-plugin-typesInstall hmh-mtl config
npm install -D eslint-config-hmh-mtlIt is recommended you install as development dependencies on your project instead of globally.
Configuration
You will need to following ESLint configuration file at the root of your repository: .eslintrc.json.
{
"extends": "eslint-config-hmh-mtl"
}If you want, you can omit the eslint-config prefix.
{
"extends": "hmh-mtl"
}See this link for details.
Overriding rules
To override rules, add a rules block in your configuration file, like in the following example.
{
"extends": "hmh-mtl",
"rules": {
"no-console": 0
}
}For more details, check out ESLint documentation.