@commercial-tribe/eslint-config
v1.35.0
Published
CommercialTribe JavaScript ESLint Shareable Config
Downloads
16
Readme
CommercialTribe eslint-configs
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.