eslint-config-hmh-mtl

1.8.0 • Public • Published

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 eslint

Install ESLint plugins

npm install -D eslint-plugin-promise eslint-plugin-types

Install hmh-mtl config

npm install -D eslint-config-hmh-mtl

It 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.

Dependents (0)

Package Sidebar

Install

npm i eslint-config-hmh-mtl

Weekly Downloads

102

Version

1.8.0

License

ISC

Unpacked Size

4.02 kB

Total Files

5

Last publish

Collaborators

  • kovalenkoff
  • rochefortd