Gathering detailed insights and metrics for eslint-svelte3-preprocess
Gathering detailed insights and metrics for eslint-svelte3-preprocess
Gathering detailed insights and metrics for eslint-svelte3-preprocess
Gathering detailed insights and metrics for eslint-svelte3-preprocess
npm install eslint-svelte3-preprocess
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (95.81%)
JavaScript (4.19%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
5 Stars
10 Commits
1 Forks
2 Watchers
6 Branches
1 Contributors
Updated on Mar 18, 2024
Latest Version
0.0.5
Package Id
eslint-svelte3-preprocess@0.0.5
Unpacked Size
30.28 kB
Size
7.85 kB
File Count
10
NPM Version
7.5.2
Node Version
14.15.4
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
21
It's a preprocessor to use with
eslint-plugin-svelte3
to
produce AST valid to the original code.
For now only TypeScript is supported but the idea is to add Coffeescript and Pug
support, like the
svelte-preprocess
package.
Many thanks to Conduitry and her/his initial work on her/his fork.
pnpm i -D eslint-svelte3-preprocess
x After following the docs of
eslint-plugin-svelte3
to
configure your eslintrc.js
file, you will need to add some props required by
@typescript-eslint/parser
and finally import your svelte.config
file (if you would like to use the same
configuration) and call the elint-plugin-svelte3-preprocess
passing your
preprocess as a parameter.
This is a example that works!
1const eslintSveltePreprocess = require("eslint-svelte3-preprocess"); 2const svelteConfig = require("./svelte.config"); 3 4module.exports = { 5 parserOptions: { 6 ecmaVersion: 2019, 7 sourceType: "module", 8 }, 9 parser: "@typescript-eslint/parser", 10 env: { 11 es6: true, 12 browser: true, 13 }, 14 extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], 15 plugins: ["svelte3", "@typescript-eslint"], 16 overrides: [ 17 { 18 files: ["*.svelte"], 19 processor: "svelte3/svelte3", 20 }, 21 ], 22 settings: { 23 "svelte3/preprocess": eslintSveltePreprocess(svelteConfig.preprocess), 24 }, 25};
I only tested it on Visual Studio Code, but I guess it should be similar for other editors. If you find the way to solve it, I would appreciate your collaboration to improve this documentation.
Having Svelte for VS Code and ESLint extensions, you need to add this to your configuration.
1{ 2 "eslint.validate": ["svelte"] 3}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
Found 0/10 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
35 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More