ESLint config with the current coding style at we.io GmbH.
npm install @we.io/eslint-config --save-dev
Add a .eslintrc
file to your project.
{
"extends": [
"@we.io"
],
// ignore configs in other directories
"root": true
}
{
"extends": [
"@we.io", // base
"@we.io/eslint-config/api"
],
// ignore configs in other directories
"root": true
}
{
"extends": [
"@we.io", // base
"@we.io/eslint-config/ui"
],
// ignore configs in other directories
"root": true
}
ESLint is a peerDependency, so you must install it as well
npm install eslint --save-dev