eslint-config-astro-svelte-jsdoc-standard
v1.4.1
Published
Sharable ESLint config based on JavaScript Standard Style and @typescript-eslint/recommended-requiring-type-checking which supports .astro and .svelte files with JavaScript code using JSDoc comments for strong typing.
Maintainers
Readme
An ESLint shareable config for JavaScript Projects using Astro and Svelte with JSDoc Type-Information that is based on eslint-config-love and has rules supporting type-information from @typescript-eslint/eslint-plugin.
Usage
Add all packages to your project:
pnpm install --save-dev eslint-config-astro-svelte-jsdoc-standardEdit your eslint.config.js:
import ecASJS from 'eslint-config-astro-svelte-jsdoc-standard'
export default [
...ecASJS,
]Details
The package will use all recommended rules from eslint, typescript-eslint (strictly type checked) and stylistic rules and love. Some type-safe rules are partially disabled for .svelte and .astro files since the parsers cannot forward jsdoc type information correctly to ESLint. But running svelte-check will catch type errors in svelte files.
Example command line usage:
$ pnpm exec eslint src