@adobe/eslint-config-aio-lib-config

Shareable ESLint config for AIO libs

Usage no npm install needed!

<script type="module">
  import adobeEslintConfigAioLibConfig from 'https://cdn.skypack.dev/@adobe/eslint-config-aio-lib-config';
</script>

README

eslint-config-aio-lib-config

Shareable ESLint config for AIO libs

Installation

To install, use npm 5 or greater:

npm install --save-dev @adobe/eslint-config-aio-lib-config
npx install-peerdeps --dev @adobe/eslint-config-aio-lib-config

Add to the root .eslintrc.json file

Add this to your .eslintrc.json file in the root of your module:

{
  "extends": "@adobe/eslint-config-aio-lib-config"
}

Exclude test/e2e folders from the node/no-unpublished-require rule

The node/no-unpublished-require prevents using a module when it hasn't been added in the dependencies key in package.json. This setting excludes this rule for test folders, where the module may have been added in the devDependencies key in package.json only.

Add this setting to a .eslintrc.json file in the affected folder:

{
    "rules": {
        "node/no-unpublished-require": 0
    }
}
``