Skip to content

CommercialTribe/eslint-config

Repository files navigation

CommercialTribe eslint-configs travis npm downloads

An ESLint Shareable Config for JavaScript Isomorphic Apps

Install

First install the base config, then choose one of the following configs.

yarn add --dev \
  @commercial-tribe/eslint-config
  eslint \
  babel-eslint \
  eslint-plugin-promise \
  eslint-plugin-standard

For React:

yarn add --dev \
  eslint-plugin-react \
  eslint-plugin-import \
  eslint-import-resolver-webpack

Then, add this to your .eslintrc file:

{
  "extends": "@commercial-tribe/eslint-config/react"
}

For Angular:

yarn add --dev \
  eslint-plugin-angular

Then, add this to your .eslintrc file:

{
  "extends": "@commercial-tribe/eslint-config/angular"
}

For Node:

yarn add --dev \
  eslint-plugin-node
{
  "extends": "@commercial-tribe/eslint-config/node"
}

Note: We omitted the eslint-config- prefix since it is automatically assumed by ESLint.

You can override settings from the shareable config by adding them directly into your .eslintrc file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published