Skip to content

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.

License

Notifications You must be signed in to change notification settings

falco467/eslint-config-astro-svelte-jsdoc-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub package.json version License GitHub issues

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:

npm install --save-dev eslint-config-astro-svelte-jsdoc-standard

Edit 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 disabled for .svelte and .astro files since the parsers currently don't forward the complete type information to typescript-eslint.

Example command line usage:

$ npx eslint .

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published