Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-strongloop

strongloop175.3kArtistic-2.02.1.0

StrongLoop core coding conventions

eslint-config

readme

eslint-config-strongloop

Baseline eslint config for StrongLoop projects. A work in progress.

Basic Usage

Add eslint-config-strongloop to devDependencies.

$ npm install -D eslint-config-strongloop

Create/modify .eslintrc in the project's root to include:

{
  "extends": "strongloop"
}

Advanced Usage

It is sometimes desirable to override some of these rules because a team does not want to follow that particular rule for this repository:

{
  "extends": "strongloop",
  "rules": {
    "comma-dangle": 0
  }
}

In cases where these rules are being adopted but the code has many style errors, it might be helpful to turn the worst errors into warnings until the entire repo can be fixed:

{
  "extends": "strongloop",
  "rules": {
    "comma-dangle": 1,
  }
}

Further Reading


© 2015 StrongLoop, Inc.

changelog

2016-08-16, Version 2.1.0

  • Add global 'use strict' requirements (Kevin Delisle)

2016-05-06, Version 2.0.1

  • update copyright notices and license (Ryan Graham)

2016-04-06, Version 2.0.0

  • Update eslint to 2.x (Sam Roberts)

2015-11-25, Version 1.0.2

  • enforce maximum line length (Sam Roberts)

2015-10-26, Version 1.0.1

  • enforce unquoted property keys unless necessary (Ryan Graham)

2015-10-19, Version 1.0.0

  • First release!