eslint-config-caixiejs-svelte
v0.1.1
Published
CaixieJS's Svelte eslint config presets with prettier
Downloads
3
Readme
eslint-config-caixiejs-svelte
CaixieJS's Svelte eslint config presets
this config extends caixiejs-ts
Usage
Install
pnpm add -D eslint eslint-config-caixiejs-svelte
Config eslint (.eslintrc | .eslintrc.js | .eslintrc.json)
{
"extends": "caixiejs-svelte"
}
You don't need .eslintignore normally as it has been provided by the preset.
add import alias
{
"settings": {
"import/resolver": {
"alias": { // default alias
"map": [
["~", "."],
["@", "./src"]
],
"extensions": [".js", ".jsx", ".mjs", ".ts", ".tsx", "mts", ".d.ts"]
}
}
}
}
Add scripts for package.json
For example:
{
"scripts": {
"lint": "eslint . --fix"
}
}