eslint-config-astro-svelte-jsdoc-standard
v1.0.7
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.
Downloads
87
Maintainers
Readme
An ESLint shareable config for JavaScript Projects using Astro and Svelte with JSDoc Type-Information that is based on eslint-config-standard and has rules supporting type-information from @typescript-eslint/eslint-plugin.
Usage
Add all packages to your project:
npm install --save-dev eslint-config-astro-svelte-jsdoc-standard
Edit your .eslintrc.js
:
module.exports = {
extends: [ 'eslint-config-astro-svelte-jsdoc-standard' ],
parserOptions: { tsconfigRootDir: __dirname }
}
You may want to override and configure some parserOptions
in ESLint when using this package.
Example command line usage:
$ npx eslint .