SvelteKit Utils is a collection of utilities and configurations to improve the development experience with SvelteKit. There are actually 2 packages in this repository:
sveltekit-dev-utils package is meant to be used as a dev dependency, while sveltekit-utils is meant to be used as a dependency.
Packages are distribuited as NPM packages through the official NPM registry.
You can use the npm cli or the pnpm package manager to install the package as a dependency:
npm install @chialab/sveltekit-utils
pnpm add @chialab/sveltekit-utils
npm install @chialab/sveltekit-dev-utils
pnpm add @chialab/sveltekit-dev-utils
svelte-dev-utils exports 3 config that you can use as follows:
For example for the eslint config create the eslint.config.js file in the root of your project and add the following:
import cfg from '@chialab/sveltekit-dev-utils/eslint-config';
export default cfg;
You can extend the config as follows:
import cfg from '@chialab/sveltekit-dev-utils/eslint-config';
export default [
...cfg,
{
rules: {
'no-console': 'off'
}
}
];
SvelteKit Utils are released under the MIT license.