开发者社区> 镜像站> NPM> @adobe/eslint-config-aio-lib-config
@adobe/eslint-config-aio-lib-config
Shareable ESLint config for AIO libs
Last updated 2 months ago by shazron .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @adobe/eslint-config-aio-lib-config 
SYNC missed versions from official npm registry.

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
    }
}
``

Current Tags

  • 1.2.1                                ...           latest (2 months ago)

5 Versions

  • 1.2.1                                ...           2 months ago
  • 1.2.0                                ...           7 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago