1.8.0 • Published 7 years ago

eslint-config-hmh-mtl v1.8.0

Weekly downloads
431
License
ISC
Repository
bitbucket
Last release
7 years ago

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.

1.8.1

7 years ago

1.8.0

7 years ago

1.7.2

8 years ago

1.7.1

8 years ago

1.7.0

8 years ago

1.5.0

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.0

9 years ago