Skip to content
eslint-config / 2.0.0

eslint-config 2.0.0

Install from the command line:
Learn more about npm packages
$ npm install @dusk-network/eslint-config@2.0.0
Install via package.json:
"@dusk-network/eslint-config": "2.0.0"

About this version

Dusk ESLint rules

ESLint config used by Dusk JavaScript apps.

Installation

npm i -D @dusk-network/eslint-config

The package requires the following peer dependencies:

If you are using Svelte rules the package need the following optional dependency:

Usage

Add the rulesets you want in the extends section of your ESLint configuration file.

e.g. to use both JS and Svelte's rules:

// ...

extends: [
    "@dusk-network/eslint-config/js",
    "@dusk-network/eslint-config/svelte"
]

// ...

npm scripts

  • npm run bump updates version number using an interactive shell
  • npm run check checks for deprecated rules and performs the linting check
  • npm run check-js checks for deprecated JS rules
  • npm run check-rules checks for deprecated JS and Svelte rules
  • npm run check-svelte checks for deprecated Svelte rules
  • npm run lint performs the linting check

Details


Assets

  • eslint-config-2.0.0.tgz

Download activity

  • Total downloads 988
  • Last 30 days 0
  • Last week 0
  • Today 0