HubSpot / eslint-config

HubSpot's ESLint configurations
1 stars 2 forks source link

eslint-config-hubspot

This repo is archived in favor of an internal ESLint config

npm version

HubSpot's ESLint configurations

Install

// npm
$ npm install --save-dev eslint eslint-config-hubspot eslint-plugin-react

// yarn
$ yarn add eslint eslint-config-hubspot eslint-plugin-react --dev

For the esnext version or if you are using newer syntax, you'll also need Babel's ESLint parser:

//npm
$ npm install --save-dev babel-eslint

// yarn
$ yarn add babel-eslint --dev

This will let you use ES2016 features like async/await and decorators. For a full list of features see Babel's experimental features and their Learn ES2015.

Usage

Add ESLint configurations to your package.json:

{
  "eslintConfig": {
    "extends": "hubspot" // or "hubspot/esnext"
  }
}

Or .eslintrc*:

{
  "extends": "hubspot" // or "hubspot/esnext"
}

License

MIT © HubSpot