Skip to content

Springworks/eslint-config-springworks

Repository files navigation

eslint-config-springworks

Build Status Greenkeeper badge

ESLint configurations used by Springworks.

Installation

$ npm i -D eslint eslint-plugin-mocha eslint-config-springworks

When extending springworks/babel, also install babel-eslint and eslint-plugin-import

$ npm i -D babel-eslint eslint-plugin-import

Usage

This package includes the configurations:

  • springworks - default configuration
  • springworks/mocha - mocha test configuration
  • springworks/babel - extends the default configuration for use with babel and ES6 features

Place an .eslintrc file in the project root that extends either springworks or springworks/babel:

{
  "extends": "springworks"
}

Place a second .eslintrc file in the test folder that extends springworks/mocha:

{
  "extends": "springworks/mocha"
}