@we.io/eslint-config

we.io GmbH ESLint config

Usage no npm install needed!

<script type="module">
  import weIoEslintConfig from 'https://cdn.skypack.dev/@we.io/eslint-config';
</script>

README

@we.io/eslint-config

ESLint config with the current coding style at we.io GmbH.

NPM version

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