@we.io/eslint-config
v5.0.13
Published
we.io GmbH ESLint config
Downloads
9
Readme
@we.io/eslint-config
ESLint config with the current coding style at we.io GmbH.
Install
npm install @we.io/eslint-config --save-dev
Usage
Add a .eslintrc
file to your project.
In general use the base config:
{
"extends": [
"@we.io"
],
// ignore configs in other directories
"root": true
}
For backend projects use:
{
"extends": [
"@we.io", // base
"@we.io/eslint-config/api"
],
// ignore configs in other directories
"root": true
}
For frontend projects use:
{
"extends": [
"@we.io", // base
"@we.io/eslint-config/ui"
],
// ignore configs in other directories
"root": true
}
Reminder
ESLint is a peerDependency, so you must install it as well
npm install eslint --save-dev