@marcrock22/veslint 0.42.0 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -37
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ veslint lints TypeScript with ESLint's rules, without ESLint. It parses with tre
|
|
|
12
12
|
|
|
13
13
|
- **Same results as ESLint.** The rules of ESLint, typescript-eslint, eslint-plugin-unicorn, @stylistic/eslint-plugin, eslint-plugin-perfectionist, @eslint-community/eslint-plugin-eslint-comments, eslint-plugin-promise, eslint-plugin-regexp and @slipher/eslint-plugin are ported to V. They report the same problems, with the same messages, positions, fixes and suggestions.
|
|
14
14
|
- **Your ESLint configuration.** veslint reads `eslint.config.*`, the directive comments (`// eslint-disable-next-line`, `/* eslint rule: … */`, `/* global */`) and rule options. A rule it does not have yet is skipped with a warning.
|
|
15
|
-
- **Fast.**
|
|
15
|
+
- **Fast.** 6 to 12 times faster than ESLint on whole projects with the same results, and faster than ESLint and oxlint at re-linting a file with type-aware rules as you type (see [Speed](#speed)).
|
|
16
16
|
- **An editor extension** for VS Code shows the problems as you type, with quick fixes.
|
|
17
17
|
|
|
18
18
|
## Speed
|
|
@@ -21,8 +21,8 @@ veslint lints TypeScript with ESLint's rules, without ESLint. It parses with tre
|
|
|
21
21
|
|
|
22
22
|

|
|
23
23
|
|
|
24
|
-
- **Against ESLint** (with typescript-eslint), veslint reports exactly the same problems,
|
|
25
|
-
- **In the editor**, with type-aware rules, veslint is faster than ESLint and oxlint on every project measured, at re-linting a file after an edit and at its first lint
|
|
24
|
+
- **Against ESLint** (with typescript-eslint), veslint reports exactly the same problems, 6 to 12 times faster on whole projects, with less memory in most cases.
|
|
25
|
+
- **In the editor**, with type-aware rules, veslint is faster than ESLint and oxlint on every project measured, at re-linting a file after an edit and at its first lint; Biome has 3 of the 23 rules, so it is left out. Without types, its first lint of a file is the fastest on zod and recharts, and so is re-linting a file after an edit on zod.
|
|
26
26
|
- **On the command line**, oxlint is faster in most cases (veslint is faster with the 23 type-aware rules on recharts and with no-floating-promises on zod and recharts), and Biome too without types. Neither reports the same problems as ESLint: the charts and the table say how many of ESLint's problems each one finds.
|
|
27
27
|
|
|
28
28
|
<details>
|
|
@@ -43,56 +43,56 @@ veslint lints TypeScript with ESLint's rules, without ESLint. It parses with tre
|
|
|
43
43
|
|
|
44
44
|
| Project | Tool | Time | CPU time | Memory | Problems | Same as ESLint | Editor: first lint | Editor: after an edit |
|
|
45
45
|
|---|---|---:|---:|---:|---:|---:|---:|---:|
|
|
46
|
-
| zod | ESLint | 4.
|
|
47
|
-
| zod | **veslint** | 0.
|
|
48
|
-
| zod | oxlint | 0.09 s ± 0.00 s | 0.15 s |
|
|
49
|
-
| zod | Biome | 0.42 s ± 0.
|
|
50
|
-
| recharts | ESLint | 4.3 s ± 0.
|
|
51
|
-
| recharts | **veslint** | 0.49 s ± 0.
|
|
52
|
-
| recharts | oxlint | 0.08 s ± 0.00 s | 0.15 s |
|
|
53
|
-
| recharts | Biome | 0.27 s ± 0.00 s | 0.76 s |
|
|
54
|
-
| TypeScript compiler | ESLint | 24 s ± 0.
|
|
55
|
-
| TypeScript compiler | **veslint** | 3.
|
|
56
|
-
| TypeScript compiler | oxlint | 0.37 s ± 0.
|
|
57
|
-
| TypeScript compiler | Biome | 1.9 s ± 0.
|
|
46
|
+
| zod | ESLint | 4.1 s ± 0.06 s | 8.2 s | 460 MiB | 972 | — | 1559 ms | 368 ms |
|
|
47
|
+
| zod | **veslint** | 0.46 s ± 0.00 s | 0.85 s | 140 MiB | 972 | 972 of 972 | 111 ms | 51 ms |
|
|
48
|
+
| zod | oxlint | 0.09 s ± 0.00 s | 0.15 s | 119 MiB | 924 | 895 of 972 | 154 ms | 96 ms |
|
|
49
|
+
| zod | Biome | 0.42 s ± 0.01 s | 0.88 s | 207 MiB | 941 | 887 of 972 | 167 ms | 350 ms |
|
|
50
|
+
| recharts | ESLint | 4.3 s ± 0.02 s | 8.6 s | 462 MiB | 380 | — | 1129 ms | 137 ms |
|
|
51
|
+
| recharts | **veslint** | 0.49 s ± 0.00 s | 0.90 s | 142 MiB | 380 | 380 of 380 | 63 ms | 25 ms |
|
|
52
|
+
| recharts | oxlint | 0.08 s ± 0.00 s | 0.15 s | 110 MiB | 362 | 331 of 380 | 131 ms | 3.3 ms |
|
|
53
|
+
| recharts | Biome | 0.27 s ± 0.00 s | 0.76 s | 133 MiB | 375 | 362 of 380 | 140 ms | 306 ms |
|
|
54
|
+
| TypeScript compiler | ESLint | 24 s ± 0.14 s | 43 s | 1,330 MiB | 1,330 | — | 2063 ms | 640 ms |
|
|
55
|
+
| TypeScript compiler | **veslint** | 3.7 s ± 0.04 s | 7.0 s | 411 MiB | 1,330 | 1,330 of 1,330 | 262 ms | 142 ms |
|
|
56
|
+
| TypeScript compiler | oxlint | 0.37 s ± 0.01 s | 0.79 s | 188 MiB | 1,012 | 957 of 1,330 | 216 ms | 109 ms |
|
|
57
|
+
| TypeScript compiler | Biome | 1.9 s ± 0.03 s | 5.9 s | 513 MiB | 1,288 | 879 of 1,330 | 522 ms | 404 ms |
|
|
58
58
|
|
|
59
59
|
**no-floating-promises**
|
|
60
60
|
|
|
61
61
|
| Project | Tool | Time | CPU time | Memory | Problems | Same as ESLint | Editor: first lint | Editor: after an edit |
|
|
62
62
|
|---|---|---:|---:|---:|---:|---:|---:|---:|
|
|
63
|
-
| zod | ESLint | 6.
|
|
64
|
-
| zod | **veslint** | 0.
|
|
65
|
-
| zod | oxlint | 0.
|
|
66
|
-
| zod | Biome | 0.
|
|
67
|
-
| recharts | ESLint | 7.
|
|
68
|
-
| recharts | **veslint** | 0.
|
|
69
|
-
| recharts | oxlint | 0.
|
|
70
|
-
| recharts | Biome | 0.45 s ± 0.01 s | 1.5 s |
|
|
71
|
-
| TypeScript compiler | ESLint | 32 s ± 0.
|
|
72
|
-
| TypeScript compiler | **veslint** | 3.
|
|
73
|
-
| TypeScript compiler | oxlint | 1.
|
|
74
|
-
| TypeScript compiler | Biome | 3.
|
|
63
|
+
| zod | ESLint | 6.1 s ± 0.05 s | 12 s | 792 MiB | 1 | — | — | — |
|
|
64
|
+
| zod | **veslint** | 0.50 s ± 0.00 s | 0.92 s | 191 MiB | 1 | 1 of 1 | — | — |
|
|
65
|
+
| zod | oxlint | 0.58 s ± 0.02 s | 1.7 s | 300 MiB | 1 | 1 of 1 | — | — |
|
|
66
|
+
| zod | Biome | 0.46 s ± 0.01 s | 1.5 s | 174 MiB | 1 | 1 of 1 | — | — |
|
|
67
|
+
| recharts | ESLint | 7.8 s ± 0.03 s | 16 s | 888 MiB | 0 | — | — | — |
|
|
68
|
+
| recharts | **veslint** | 0.67 s ± 0.02 s | 1.2 s | 243 MiB | 0 | 0 of 0 | — | — |
|
|
69
|
+
| recharts | oxlint | 0.71 s ± 0.02 s | 2.5 s | 318 MiB | 0 | 0 of 0 | — | — |
|
|
70
|
+
| recharts | Biome | 0.45 s ± 0.01 s | 1.5 s | 181 MiB | 0 | 0 of 0 | — | — |
|
|
71
|
+
| TypeScript compiler | ESLint | 32 s ± 0.17 s | 61 s | 1,886 MiB | 2 | — | — | — |
|
|
72
|
+
| TypeScript compiler | **veslint** | 3.4 s ± 0.02 s | 6.3 s | 705 MiB | 2 | 2 of 2 | — | — |
|
|
73
|
+
| TypeScript compiler | oxlint | 1.8 s ± 0.09 s | 6.8 s | 695 MiB | 2 | 2 of 2 | — | — |
|
|
74
|
+
| TypeScript compiler | Biome | 3.0 s ± 0.00 s | 12 s | 428 MiB | 2 | 2 of 2 | — | — |
|
|
75
75
|
|
|
76
76
|
**the 23 type-aware rules of recommendedTypeChecked**
|
|
77
77
|
|
|
78
78
|
| Project | Tool | Time | CPU time | Memory | Problems | Same as ESLint | Editor: first lint | Editor: after an edit |
|
|
79
79
|
|---|---|---:|---:|---:|---:|---:|---:|---:|
|
|
80
|
-
| zod | ESLint | 14 s ± 0.08 s |
|
|
81
|
-
| zod | **veslint** |
|
|
82
|
-
| zod | oxlint | 1.8 s ± 0.
|
|
83
|
-
| recharts | ESLint | 23 s ± 0.18 s |
|
|
84
|
-
| recharts | **veslint** | 3.
|
|
85
|
-
| recharts | oxlint | 4.
|
|
86
|
-
| TypeScript compiler | ESLint | 72 s ± 0.
|
|
87
|
-
| TypeScript compiler | **veslint** |
|
|
88
|
-
| TypeScript compiler | oxlint | 6.3 s ± 0.
|
|
80
|
+
| zod | ESLint | 14 s ± 0.08 s | 24 s | 1,028 MiB | 1,376 | — | 3775 ms | 1131 ms |
|
|
81
|
+
| zod | **veslint** | 1.9 s ± 0.02 s | 3.6 s | 483 MiB | 1,376 | 1,376 of 1,376 | 434 ms | 252 ms |
|
|
82
|
+
| zod | oxlint | 1.8 s ± 0.04 s | 5.4 s | 461 MiB | 1,357 | 1,304 of 1,376 | 510 ms | 437 ms |
|
|
83
|
+
| recharts | ESLint | 23 s ± 0.18 s | 38 s | 1,301 MiB | 175 | — | 5102 ms | 1166 ms |
|
|
84
|
+
| recharts | **veslint** | 3.7 s ± 0.06 s | 7.1 s | 810 MiB | 175 | 175 of 175 | 463 ms | 245 ms |
|
|
85
|
+
| recharts | oxlint | 4.6 s ± 0.08 s | 15 s | 911 MiB | 175 | 168 of 175 | 649 ms | 535 ms |
|
|
86
|
+
| TypeScript compiler | ESLint | 72 s ± 0.70 s | 116 s | 2,012 MiB | 3,790 | — | 8850 ms | 2381 ms |
|
|
87
|
+
| TypeScript compiler | **veslint** | 11 s ± 0.08 s | 22 s | 1,812 MiB | 3,790 | 3,790 of 3,790 | 1292 ms | 595 ms |
|
|
88
|
+
| TypeScript compiler | oxlint | 6.3 s ± 0.14 s | 23 s | 1,094 MiB | 3,784 | 2,980 of 3,790 | 1659 ms | 1540 ms |
|
|
89
89
|
|
|
90
90
|
</details>
|
|
91
91
|
|
|
92
92
|
<details>
|
|
93
93
|
<summary>How it was measured</summary>
|
|
94
94
|
|
|
95
|
-
`tests/bench/run.sh` (2026-11-21, `docs/bench/results.json`) on an Intel Core i3-4150T (2 cores, 4 threads, 12 GB, Linux), with veslint 0.
|
|
95
|
+
`tests/bench/run.sh` (2026-11-21, `docs/bench/results.json`) on an Intel Core i3-4150T (2 cores, 4 threads, 12 GB, Linux), with veslint 0.44.0 (TypeScript 7.1.0-beta), ESLint 10.15.0 with typescript-eslint 8.72.2 and TypeScript 6.0.3, oxlint 1.94.0 with oxlint-tsgolint 7.0.2007, and Biome 2.6.8.
|
|
96
96
|
|
|
97
97
|
- **Projects:** zod, recharts and the TypeScript compiler's sources, each linted with one `tsconfig.json`, the same files for every tool.
|
|
98
98
|
- **Rules:**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marcrock22/veslint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
4
4
|
"description": "A TypeScript linter in V that talks to TypeScript 7 (tsc --api) directly: the rules of ESLint, typescript-eslint, unicorn, @stylistic, perfectionist and seyfert, with the same results.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"veslint": "bin/veslint.js"
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"bin"
|
|
10
10
|
],
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@marcrock22/veslint-linux-x64": "0.
|
|
13
|
-
"@marcrock22/veslint-win32-x64": "0.
|
|
12
|
+
"@marcrock22/veslint-linux-x64": "0.44.0",
|
|
13
|
+
"@marcrock22/veslint-win32-x64": "0.44.0"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"typescript",
|