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
ESLint config used by Dusk JavaScript apps.
npm i -D @dusk-network/eslint-config
The package requires the following peer dependencies:
-
eslint
>=8
-
eslint-plugin-import
>=2
If you are using Svelte rules the package need the following optional dependency:
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 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