ESLint config used by Dusk JavaScript apps.
npm i -D @dusk-network/eslint-configYour package requires the following dev-dependencies:
If you are using Svelte rules your package needs the following dev-dependency:
If you are using Vitest rules your package needs the following dev-dependency:
Add the rulesets you want in the extends section of your ESLint configuration file.
e.g. to use both JS, Svelte and Vitest rules:
// ...
extends: [
"@dusk-network/eslint-config/js",
"@dusk-network/eslint-config/svelte",
"@dusk-network/eslint-config/vitest"
]
// ...npm run checkchecks for deprecated rules and performs the linting checknpm run check-jschecks for deprecated JS rulesnpm run check-ruleschecks for deprecated JS and Svelte rulesnpm run check-sveltechecks for deprecated Svelte rulesnpm run formatperforms the Prettier formatting checknpm run format:fixreformats according to the Prettier rulesnpm run lintperforms the linting checknpm run lint:fixfixes fixable linting errors