@flint.fyi/rule-data 0.4.0 → 0.5.1
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/LICENSE.md +20 -0
- package/dist/index.d.mts +28 -95
- package/dist/index.mjs +192 -50
- package/package.json +92 -91
- package/dist/index.d.ts +0 -67
- package/dist/index.js +0 -29346
package/LICENSE.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
'Software'), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
18
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
19
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
20
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
import { AnyRule } from "@flint.fyi/core";
|
|
3
|
-
|
|
4
3
|
//#region src/getRuleForPlugin.d.ts
|
|
5
4
|
declare function getRuleForPlugin(pluginId: string, ruleId: string): AnyRule;
|
|
6
5
|
declare function getRuleForPluginSafe(pluginId: string, ruleId: string): AnyRule | undefined;
|
|
7
6
|
//#endregion
|
|
8
|
-
//#region src/
|
|
9
|
-
type
|
|
10
|
-
|
|
7
|
+
//#region src/schemas.d.ts
|
|
8
|
+
type FlintPlugin = "astro" | "browser" | "css" | "drizzle" | "flint" | "graphql" | "jest" | "json" | "jsx" | "md" | "next" | "node" | "nuxt" | "package-json" | "performance" | "playwright" | "qwik" | "react" | "react-native" | "security" | "solid" | "spelling" | "svelte" | "ts" | "vitest" | "vue" | "yaml";
|
|
9
|
+
type FlintPreset = "javascript" | "logical" | "security" | "sorting" | "stylistic";
|
|
10
|
+
type FlintRuleReference = {
|
|
11
|
+
name: string;
|
|
12
|
+
plugin: FlintPlugin;
|
|
13
|
+
preset?: FlintPreset;
|
|
14
|
+
status?: "implemented";
|
|
15
|
+
strictness?: "strict";
|
|
16
|
+
} | {
|
|
17
|
+
name: string;
|
|
18
|
+
plugin: FlintPlugin;
|
|
19
|
+
status: "skipped";
|
|
20
|
+
};
|
|
21
|
+
interface LinterRuleReference {
|
|
22
|
+
name: string;
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
11
25
|
declare const linterNames: {
|
|
12
26
|
readonly biome: "Biome";
|
|
13
27
|
readonly deno: "Deno";
|
|
@@ -16,96 +30,15 @@ declare const linterNames: {
|
|
|
16
30
|
readonly oxlint: "Oxlint";
|
|
17
31
|
readonly stylelint: "Stylelint";
|
|
18
32
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
name: string;
|
|
26
|
-
plugin: "astro" | "browser" | "css" | "flint" | "json" | "jsx" | "md" | "node" | "package-json" | "performance" | "spelling" | "ts" | "vitest" | "yaml" | "security" | "drizzle" | "graphql" | "jest" | "next" | "nuxt" | "playwright" | "qwik" | "react" | "react-native" | "solid" | "svelte" | "vue";
|
|
27
|
-
preset?: "javascript" | "logical" | "stylistic" | "sorting" | "security" | "config" | "none" | undefined;
|
|
28
|
-
status?: "implemented" | undefined;
|
|
29
|
-
strictness?: "strict" | undefined;
|
|
30
|
-
};
|
|
31
|
-
biome?: {
|
|
32
|
-
name: string;
|
|
33
|
-
url: string;
|
|
34
|
-
}[] | undefined;
|
|
35
|
-
deno?: {
|
|
36
|
-
name: string;
|
|
37
|
-
url: string;
|
|
38
|
-
}[] | undefined;
|
|
39
|
-
eslint?: {
|
|
40
|
-
name: string;
|
|
41
|
-
url: string;
|
|
42
|
-
}[] | undefined;
|
|
43
|
-
markdownlint?: {
|
|
44
|
-
name: string;
|
|
45
|
-
url: string;
|
|
46
|
-
}[] | undefined;
|
|
47
|
-
notes?: string | undefined;
|
|
48
|
-
oxlint?: {
|
|
49
|
-
name: string;
|
|
50
|
-
url: string;
|
|
51
|
-
}[] | undefined;
|
|
52
|
-
stylelint?: {
|
|
53
|
-
name: string;
|
|
54
|
-
url: string;
|
|
55
|
-
}[] | undefined;
|
|
56
|
-
}[];
|
|
33
|
+
type LinterName = keyof typeof linterNames;
|
|
34
|
+
interface RuleDetails extends AlternateLinterDetails {
|
|
35
|
+
flint: FlintRuleReference;
|
|
36
|
+
notes?: string;
|
|
37
|
+
}
|
|
38
|
+
type AlternateLinterDetails = Partial<Record<LinterName, LinterRuleReference[]>>;
|
|
57
39
|
//#endregion
|
|
58
|
-
//#region src/
|
|
59
|
-
declare
|
|
60
|
-
|
|
61
|
-
plugin: z.ZodUnion<readonly [z.ZodLiteral<"astro">, z.ZodLiteral<"browser">, z.ZodLiteral<"css">, z.ZodLiteral<"drizzle">, z.ZodLiteral<"flint">, z.ZodLiteral<"graphql">, z.ZodLiteral<"json">, z.ZodLiteral<"jest">, z.ZodLiteral<"jsx">, z.ZodLiteral<"md">, z.ZodLiteral<"next">, z.ZodLiteral<"node">, z.ZodLiteral<"nuxt">, z.ZodLiteral<"package-json">, z.ZodLiteral<"performance">, z.ZodLiteral<"playwright">, z.ZodLiteral<"qwik">, z.ZodLiteral<"react">, z.ZodLiteral<"react-native">, z.ZodLiteral<"security">, z.ZodLiteral<"solid">, z.ZodLiteral<"spelling">, z.ZodLiteral<"svelte">, z.ZodLiteral<"ts">, z.ZodLiteral<"vitest">, z.ZodLiteral<"vue">, z.ZodLiteral<"yaml">]>;
|
|
62
|
-
status: z.ZodLiteral<"skipped">;
|
|
63
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
64
|
-
name: z.ZodString;
|
|
65
|
-
plugin: z.ZodUnion<readonly [z.ZodLiteral<"astro">, z.ZodLiteral<"browser">, z.ZodLiteral<"css">, z.ZodLiteral<"drizzle">, z.ZodLiteral<"flint">, z.ZodLiteral<"graphql">, z.ZodLiteral<"json">, z.ZodLiteral<"jest">, z.ZodLiteral<"jsx">, z.ZodLiteral<"md">, z.ZodLiteral<"next">, z.ZodLiteral<"node">, z.ZodLiteral<"nuxt">, z.ZodLiteral<"package-json">, z.ZodLiteral<"performance">, z.ZodLiteral<"playwright">, z.ZodLiteral<"qwik">, z.ZodLiteral<"react">, z.ZodLiteral<"react-native">, z.ZodLiteral<"security">, z.ZodLiteral<"solid">, z.ZodLiteral<"spelling">, z.ZodLiteral<"svelte">, z.ZodLiteral<"ts">, z.ZodLiteral<"vitest">, z.ZodLiteral<"vue">, z.ZodLiteral<"yaml">]>;
|
|
66
|
-
preset: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"config">, z.ZodLiteral<"javascript">, z.ZodLiteral<"logical">, z.ZodLiteral<"none">, z.ZodLiteral<"security">, z.ZodLiteral<"sorting">, z.ZodLiteral<"stylistic">]>>;
|
|
67
|
-
status: z.ZodOptional<z.ZodLiteral<"implemented">>;
|
|
68
|
-
strictness: z.ZodOptional<z.ZodLiteral<"strict">>;
|
|
69
|
-
}, z.core.$strict>]>;
|
|
70
|
-
type FlintRuleReference = z.infer<typeof flintRuleReferenceSchema>;
|
|
71
|
-
type RuleDetails = z.infer<typeof ruleDetailsSchema>;
|
|
72
|
-
declare const ruleDetailsSchema: z.ZodObject<{
|
|
73
|
-
biome: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
|
-
name: z.ZodString;
|
|
75
|
-
url: z.ZodURL;
|
|
76
|
-
}, z.core.$strict>>>;
|
|
77
|
-
deno: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
78
|
-
name: z.ZodString;
|
|
79
|
-
url: z.ZodURL;
|
|
80
|
-
}, z.core.$strict>>>;
|
|
81
|
-
eslint: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
82
|
-
name: z.ZodString;
|
|
83
|
-
url: z.ZodURL;
|
|
84
|
-
}, z.core.$strict>>>;
|
|
85
|
-
flint: z.ZodUnion<readonly [z.ZodObject<{
|
|
86
|
-
name: z.ZodString;
|
|
87
|
-
plugin: z.ZodUnion<readonly [z.ZodLiteral<"astro">, z.ZodLiteral<"browser">, z.ZodLiteral<"css">, z.ZodLiteral<"drizzle">, z.ZodLiteral<"flint">, z.ZodLiteral<"graphql">, z.ZodLiteral<"json">, z.ZodLiteral<"jest">, z.ZodLiteral<"jsx">, z.ZodLiteral<"md">, z.ZodLiteral<"next">, z.ZodLiteral<"node">, z.ZodLiteral<"nuxt">, z.ZodLiteral<"package-json">, z.ZodLiteral<"performance">, z.ZodLiteral<"playwright">, z.ZodLiteral<"qwik">, z.ZodLiteral<"react">, z.ZodLiteral<"react-native">, z.ZodLiteral<"security">, z.ZodLiteral<"solid">, z.ZodLiteral<"spelling">, z.ZodLiteral<"svelte">, z.ZodLiteral<"ts">, z.ZodLiteral<"vitest">, z.ZodLiteral<"vue">, z.ZodLiteral<"yaml">]>;
|
|
88
|
-
status: z.ZodLiteral<"skipped">;
|
|
89
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
90
|
-
name: z.ZodString;
|
|
91
|
-
plugin: z.ZodUnion<readonly [z.ZodLiteral<"astro">, z.ZodLiteral<"browser">, z.ZodLiteral<"css">, z.ZodLiteral<"drizzle">, z.ZodLiteral<"flint">, z.ZodLiteral<"graphql">, z.ZodLiteral<"json">, z.ZodLiteral<"jest">, z.ZodLiteral<"jsx">, z.ZodLiteral<"md">, z.ZodLiteral<"next">, z.ZodLiteral<"node">, z.ZodLiteral<"nuxt">, z.ZodLiteral<"package-json">, z.ZodLiteral<"performance">, z.ZodLiteral<"playwright">, z.ZodLiteral<"qwik">, z.ZodLiteral<"react">, z.ZodLiteral<"react-native">, z.ZodLiteral<"security">, z.ZodLiteral<"solid">, z.ZodLiteral<"spelling">, z.ZodLiteral<"svelte">, z.ZodLiteral<"ts">, z.ZodLiteral<"vitest">, z.ZodLiteral<"vue">, z.ZodLiteral<"yaml">]>;
|
|
92
|
-
preset: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"config">, z.ZodLiteral<"javascript">, z.ZodLiteral<"logical">, z.ZodLiteral<"none">, z.ZodLiteral<"security">, z.ZodLiteral<"sorting">, z.ZodLiteral<"stylistic">]>>;
|
|
93
|
-
status: z.ZodOptional<z.ZodLiteral<"implemented">>;
|
|
94
|
-
strictness: z.ZodOptional<z.ZodLiteral<"strict">>;
|
|
95
|
-
}, z.core.$strict>]>;
|
|
96
|
-
markdownlint: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
97
|
-
name: z.ZodString;
|
|
98
|
-
url: z.ZodURL;
|
|
99
|
-
}, z.core.$strict>>>;
|
|
100
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
101
|
-
oxlint: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
-
name: z.ZodString;
|
|
103
|
-
url: z.ZodURL;
|
|
104
|
-
}, z.core.$strict>>>;
|
|
105
|
-
stylelint: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
106
|
-
name: z.ZodString;
|
|
107
|
-
url: z.ZodURL;
|
|
108
|
-
}, z.core.$strict>>>;
|
|
109
|
-
}, z.core.$strict>;
|
|
40
|
+
//#region src/ruleData.d.ts
|
|
41
|
+
declare function getFlintRuleId(pluginId: string, ruleId: string): string;
|
|
42
|
+
declare const ruleData: RuleDetails[];
|
|
110
43
|
//#endregion
|
|
111
|
-
export { type FlintRuleReference, type LinterName, type RuleDetails, getFlintRuleId, getRuleForPlugin, getRuleForPluginSafe, linterNames, ruleData };
|
|
44
|
+
export { type FlintRuleReference, type LinterName, type LinterRuleReference, type RuleDetails, getFlintRuleId, getRuleForPlugin, getRuleForPluginSafe, linterNames, ruleData };
|
package/dist/index.mjs
CHANGED
|
@@ -491,6 +491,18 @@ var data_default = [
|
|
|
491
491
|
"preset": "logical"
|
|
492
492
|
}
|
|
493
493
|
},
|
|
494
|
+
{
|
|
495
|
+
"eslint": [{
|
|
496
|
+
"name": "astro/no-omitted-end-tags",
|
|
497
|
+
"url": "https://ota-meshi.github.io/eslint-plugin-astro/rules/no-omitted-end-tags"
|
|
498
|
+
}],
|
|
499
|
+
"flint": {
|
|
500
|
+
"name": "omittedEndTags",
|
|
501
|
+
"plugin": "astro",
|
|
502
|
+
"status": "skipped"
|
|
503
|
+
},
|
|
504
|
+
"notes": "Handled by the Astro compiler."
|
|
505
|
+
},
|
|
494
506
|
{
|
|
495
507
|
"eslint": [{
|
|
496
508
|
"name": "astro/no-prerender-export-outside-pages",
|
|
@@ -4263,7 +4275,7 @@ var data_default = [
|
|
|
4263
4275
|
"flint": {
|
|
4264
4276
|
"name": "automaticJsoncRules",
|
|
4265
4277
|
"plugin": "json",
|
|
4266
|
-
"
|
|
4278
|
+
"status": "skipped"
|
|
4267
4279
|
}
|
|
4268
4280
|
},
|
|
4269
4281
|
{
|
|
@@ -5931,7 +5943,11 @@ var data_default = [
|
|
|
5931
5943
|
"plugin": "jsx",
|
|
5932
5944
|
"status": "skipped"
|
|
5933
5945
|
},
|
|
5934
|
-
"notes": "Overly opinionated."
|
|
5946
|
+
"notes": "Overly opinionated.",
|
|
5947
|
+
"oxlint": [{
|
|
5948
|
+
"name": "react/jsx-no-literals",
|
|
5949
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-literals.html"
|
|
5950
|
+
}]
|
|
5935
5951
|
},
|
|
5936
5952
|
{
|
|
5937
5953
|
"eslint": [{
|
|
@@ -6130,13 +6146,13 @@ var data_default = [
|
|
|
6130
6146
|
"flint": {
|
|
6131
6147
|
"name": "propDuplicates",
|
|
6132
6148
|
"plugin": "jsx",
|
|
6133
|
-
"
|
|
6134
|
-
"status": "implemented"
|
|
6149
|
+
"status": "skipped"
|
|
6135
6150
|
},
|
|
6136
6151
|
"oxlint": [{
|
|
6137
6152
|
"name": "react/jsx-no-duplicate-props",
|
|
6138
6153
|
"url": "https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-duplicate-props.html"
|
|
6139
|
-
}]
|
|
6154
|
+
}],
|
|
6155
|
+
"notes": "Handled by TypeScript / otherwise is stylistic."
|
|
6140
6156
|
},
|
|
6141
6157
|
{
|
|
6142
6158
|
"eslint": [{
|
|
@@ -7987,7 +8003,11 @@ var data_default = [
|
|
|
7987
8003
|
"plugin": "node",
|
|
7988
8004
|
"status": "skipped"
|
|
7989
8005
|
},
|
|
7990
|
-
"notes": "CJS-specific."
|
|
8006
|
+
"notes": "CJS-specific.",
|
|
8007
|
+
"oxlint": [{
|
|
8008
|
+
"name": "node/exports-style",
|
|
8009
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/node/exports-style.html"
|
|
8010
|
+
}]
|
|
7991
8011
|
},
|
|
7992
8012
|
{
|
|
7993
8013
|
"eslint": [{
|
|
@@ -8201,7 +8221,11 @@ var data_default = [
|
|
|
8201
8221
|
"plugin": "node",
|
|
8202
8222
|
"status": "skipped"
|
|
8203
8223
|
},
|
|
8204
|
-
"notes": "Superseded by ESM and ordering rules."
|
|
8224
|
+
"notes": "Superseded by ESM and ordering rules.",
|
|
8225
|
+
"oxlint": [{
|
|
8226
|
+
"name": "node/no-mixed-requires",
|
|
8227
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/node/no-mixed-requires.html"
|
|
8228
|
+
}]
|
|
8205
8229
|
},
|
|
8206
8230
|
{
|
|
8207
8231
|
"eslint": [{
|
|
@@ -8412,7 +8436,11 @@ var data_default = [
|
|
|
8412
8436
|
"name": "synchronousMethods",
|
|
8413
8437
|
"plugin": "node",
|
|
8414
8438
|
"status": "skipped"
|
|
8415
|
-
}
|
|
8439
|
+
},
|
|
8440
|
+
"oxlint": [{
|
|
8441
|
+
"name": "node/no-sync",
|
|
8442
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/node/no-sync.html"
|
|
8443
|
+
}]
|
|
8416
8444
|
},
|
|
8417
8445
|
{
|
|
8418
8446
|
"eslint": [{
|
|
@@ -8422,7 +8450,11 @@ var data_default = [
|
|
|
8422
8450
|
"flint": {
|
|
8423
8451
|
"name": "topLevelAwaits",
|
|
8424
8452
|
"plugin": "node"
|
|
8425
|
-
}
|
|
8453
|
+
},
|
|
8454
|
+
"oxlint": [{
|
|
8455
|
+
"name": "node/no-top-level-await",
|
|
8456
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/node/no-top-level-await.html"
|
|
8457
|
+
}]
|
|
8426
8458
|
},
|
|
8427
8459
|
{
|
|
8428
8460
|
"eslint": [{
|
|
@@ -10188,6 +10220,17 @@ var data_default = [
|
|
|
10188
10220
|
"url": "https://oxc.rs/docs/guide/usage/linter/rules/react/no-clone-element.html"
|
|
10189
10221
|
}]
|
|
10190
10222
|
},
|
|
10223
|
+
{
|
|
10224
|
+
"flint": {
|
|
10225
|
+
"name": "compilerDiagnostics",
|
|
10226
|
+
"plugin": "react",
|
|
10227
|
+
"status": "skipped"
|
|
10228
|
+
},
|
|
10229
|
+
"oxlint": [{
|
|
10230
|
+
"name": "react/react-compiler",
|
|
10231
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/react/react-compiler.html"
|
|
10232
|
+
}]
|
|
10233
|
+
},
|
|
10191
10234
|
{
|
|
10192
10235
|
"eslint": [{
|
|
10193
10236
|
"name": "react-hooks/config",
|
|
@@ -10196,7 +10239,7 @@ var data_default = [
|
|
|
10196
10239
|
"flint": {
|
|
10197
10240
|
"name": "compilerOptions",
|
|
10198
10241
|
"plugin": "react",
|
|
10199
|
-
"preset": "
|
|
10242
|
+
"preset": "logical"
|
|
10200
10243
|
}
|
|
10201
10244
|
},
|
|
10202
10245
|
{
|
|
@@ -10747,7 +10790,11 @@ var data_default = [
|
|
|
10747
10790
|
"name": "functionComponentDefinitions",
|
|
10748
10791
|
"plugin": "react",
|
|
10749
10792
|
"preset": "stylistic"
|
|
10750
|
-
}
|
|
10793
|
+
},
|
|
10794
|
+
"oxlint": [{
|
|
10795
|
+
"name": "react/function-component-definition",
|
|
10796
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/react/function-component-definition.html"
|
|
10797
|
+
}]
|
|
10751
10798
|
},
|
|
10752
10799
|
{
|
|
10753
10800
|
"eslint": [{
|
|
@@ -10772,7 +10819,7 @@ var data_default = [
|
|
|
10772
10819
|
"flint": {
|
|
10773
10820
|
"name": "gating",
|
|
10774
10821
|
"plugin": "react",
|
|
10775
|
-
"preset": "
|
|
10822
|
+
"preset": "logical"
|
|
10776
10823
|
}
|
|
10777
10824
|
},
|
|
10778
10825
|
{
|
|
@@ -13259,6 +13306,17 @@ var data_default = [
|
|
|
13259
13306
|
"url": "https://oxc.rs/docs/guide/usage/linter/rules/unicorn/consistent-existence-index-check.html"
|
|
13260
13307
|
}]
|
|
13261
13308
|
},
|
|
13309
|
+
{
|
|
13310
|
+
"flint": {
|
|
13311
|
+
"name": "arrayFillWithReferenceTypes",
|
|
13312
|
+
"plugin": "ts",
|
|
13313
|
+
"preset": "logical"
|
|
13314
|
+
},
|
|
13315
|
+
"oxlint": [{
|
|
13316
|
+
"name": "unicorn/no-array-fill-with-reference-type",
|
|
13317
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-array-fill-with-reference-type.html"
|
|
13318
|
+
}]
|
|
13319
|
+
},
|
|
13262
13320
|
{
|
|
13263
13321
|
"eslint": [{
|
|
13264
13322
|
"name": "unicorn/prefer-array-find",
|
|
@@ -14444,7 +14502,11 @@ var data_default = [
|
|
|
14444
14502
|
"status": "implemented",
|
|
14445
14503
|
"strictness": "strict"
|
|
14446
14504
|
},
|
|
14447
|
-
"notes": "Just for Array#push(); the others would be their own rules."
|
|
14505
|
+
"notes": "Just for Array#push(); the others would be their own rules.",
|
|
14506
|
+
"oxlint": [{
|
|
14507
|
+
"name": "unicorn/prefer-single-call",
|
|
14508
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-single-call.html"
|
|
14509
|
+
}]
|
|
14448
14510
|
},
|
|
14449
14511
|
{
|
|
14450
14512
|
"eslint": [{
|
|
@@ -14570,6 +14632,17 @@ var data_default = [
|
|
|
14570
14632
|
"url": "https://oxc.rs/docs/guide/usage/linter/rules/eslint/yoda.html"
|
|
14571
14633
|
}]
|
|
14572
14634
|
},
|
|
14635
|
+
{
|
|
14636
|
+
"flint": {
|
|
14637
|
+
"name": "confusingArrayWithCalls",
|
|
14638
|
+
"plugin": "ts",
|
|
14639
|
+
"preset": "stylistic"
|
|
14640
|
+
},
|
|
14641
|
+
"oxlint": [{
|
|
14642
|
+
"name": "unicorn/no-confusing-array-with",
|
|
14643
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-confusing-array-with.html"
|
|
14644
|
+
}]
|
|
14645
|
+
},
|
|
14573
14646
|
{
|
|
14574
14647
|
"biome": [{
|
|
14575
14648
|
"name": "noExtraNonNullAssertion",
|
|
@@ -15919,6 +15992,18 @@ var data_default = [
|
|
|
15919
15992
|
"url": "https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-explicit-any.html"
|
|
15920
15993
|
}]
|
|
15921
15994
|
},
|
|
15995
|
+
{
|
|
15996
|
+
"flint": {
|
|
15997
|
+
"name": "explicitTimerDelays",
|
|
15998
|
+
"plugin": "ts",
|
|
15999
|
+
"preset": "stylistic",
|
|
16000
|
+
"strictness": "strict"
|
|
16001
|
+
},
|
|
16002
|
+
"oxlint": [{
|
|
16003
|
+
"name": "unicorn/explicit-timer-delay",
|
|
16004
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/unicorn/explicit-timer-delay.html"
|
|
16005
|
+
}]
|
|
16006
|
+
},
|
|
15922
16007
|
{
|
|
15923
16008
|
"biome": [{
|
|
15924
16009
|
"name": "useExponentiationOperator",
|
|
@@ -15989,7 +16074,11 @@ var data_default = [
|
|
|
15989
16074
|
"plugin": "ts",
|
|
15990
16075
|
"preset": "stylistic",
|
|
15991
16076
|
"status": "implemented"
|
|
15992
|
-
}
|
|
16077
|
+
},
|
|
16078
|
+
"oxlint": [{
|
|
16079
|
+
"name": "unicorn/prefer-export-from",
|
|
16080
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-export-from.html"
|
|
16081
|
+
}]
|
|
15993
16082
|
},
|
|
15994
16083
|
{
|
|
15995
16084
|
"eslint": [{
|
|
@@ -16849,7 +16938,7 @@ var data_default = [
|
|
|
16849
16938
|
"flint": {
|
|
16850
16939
|
"name": "importExtraneousDependencies",
|
|
16851
16940
|
"plugin": "ts",
|
|
16852
|
-
"
|
|
16941
|
+
"status": "skipped"
|
|
16853
16942
|
},
|
|
16854
16943
|
"notes": "Superseded by Knip."
|
|
16855
16944
|
},
|
|
@@ -18490,6 +18579,18 @@ var data_default = [
|
|
|
18490
18579
|
"url": "https://oxc.rs/docs/guide/usage/linter/rules/eslint/max-statements.html"
|
|
18491
18580
|
}]
|
|
18492
18581
|
},
|
|
18582
|
+
{
|
|
18583
|
+
"flint": {
|
|
18584
|
+
"name": "maxNestedCalls",
|
|
18585
|
+
"plugin": "ts",
|
|
18586
|
+
"status": "skipped"
|
|
18587
|
+
},
|
|
18588
|
+
"oxlint": [{
|
|
18589
|
+
"name": "unicorn/max-nested-calls",
|
|
18590
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/unicorn/max-nested-calls.html"
|
|
18591
|
+
}],
|
|
18592
|
+
"notes": "Overly opinionated."
|
|
18593
|
+
},
|
|
18493
18594
|
{
|
|
18494
18595
|
"eslint": [{
|
|
18495
18596
|
"name": "@typescript-eslint/no-meaningless-void-operator",
|
|
@@ -18903,9 +19004,9 @@ var data_default = [
|
|
|
18903
19004
|
"flint": {
|
|
18904
19005
|
"name": "namespaceKeywords",
|
|
18905
19006
|
"plugin": "ts",
|
|
18906
|
-
"
|
|
18907
|
-
"status": "implemented"
|
|
19007
|
+
"status": "skipped"
|
|
18908
19008
|
},
|
|
19009
|
+
"notes": "Handled by TypeScript.",
|
|
18909
19010
|
"oxlint": [{
|
|
18910
19011
|
"name": "typescript/prefer-namespace-keyword",
|
|
18911
19012
|
"url": "https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-namespace-keyword.html"
|
|
@@ -19293,6 +19394,17 @@ var data_default = [
|
|
|
19293
19394
|
"url": "https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-null.html"
|
|
19294
19395
|
}]
|
|
19295
19396
|
},
|
|
19397
|
+
{
|
|
19398
|
+
"flint": {
|
|
19399
|
+
"name": "numberCoercions",
|
|
19400
|
+
"plugin": "ts",
|
|
19401
|
+
"preset": "logical"
|
|
19402
|
+
},
|
|
19403
|
+
"oxlint": [{
|
|
19404
|
+
"name": "unicorn/prefer-number-coercion",
|
|
19405
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-number-coercion.html"
|
|
19406
|
+
}]
|
|
19407
|
+
},
|
|
19296
19408
|
{
|
|
19297
19409
|
"biome": [{
|
|
19298
19410
|
"name": "useSimpleNumberKeys",
|
|
@@ -19745,9 +19857,9 @@ var data_default = [
|
|
|
19745
19857
|
"flint": {
|
|
19746
19858
|
"name": "octalNumbers",
|
|
19747
19859
|
"plugin": "ts",
|
|
19748
|
-
"
|
|
19749
|
-
|
|
19750
|
-
|
|
19860
|
+
"status": "skipped"
|
|
19861
|
+
},
|
|
19862
|
+
"notes": "Handled by TypeScript / otherwise is stylistic."
|
|
19751
19863
|
},
|
|
19752
19864
|
{
|
|
19753
19865
|
"biome": [{
|
|
@@ -20466,6 +20578,9 @@ var data_default = [
|
|
|
20466
20578
|
"status": "implemented"
|
|
20467
20579
|
},
|
|
20468
20580
|
"oxlint": [{
|
|
20581
|
+
"name": "oxc/bad-match-all-arg",
|
|
20582
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-match-all-arg.html"
|
|
20583
|
+
}, {
|
|
20469
20584
|
"name": "oxc/bad-replace-all-arg",
|
|
20470
20585
|
"url": "https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-replace-all-arg.html"
|
|
20471
20586
|
}]
|
|
@@ -21757,7 +21872,11 @@ var data_default = [
|
|
|
21757
21872
|
"name": "restrictedIdentifiers",
|
|
21758
21873
|
"plugin": "ts",
|
|
21759
21874
|
"status": "implemented"
|
|
21760
|
-
}
|
|
21875
|
+
},
|
|
21876
|
+
"oxlint": [{
|
|
21877
|
+
"name": "eslint/id-denylist",
|
|
21878
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/eslint/id-denylist.html"
|
|
21879
|
+
}]
|
|
21761
21880
|
},
|
|
21762
21881
|
{
|
|
21763
21882
|
"eslint": [{
|
|
@@ -23864,7 +23983,11 @@ var data_default = [
|
|
|
23864
23983
|
"name": "unreachableLoops",
|
|
23865
23984
|
"plugin": "ts",
|
|
23866
23985
|
"status": "skipped"
|
|
23867
|
-
}
|
|
23986
|
+
},
|
|
23987
|
+
"oxlint": [{
|
|
23988
|
+
"name": "eslint/no-unreachable-loop",
|
|
23989
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unreachable-loop.html"
|
|
23990
|
+
}]
|
|
23868
23991
|
},
|
|
23869
23992
|
{
|
|
23870
23993
|
"biome": [{
|
|
@@ -24744,8 +24867,8 @@ var data_default = [
|
|
|
24744
24867
|
"flint": {
|
|
24745
24868
|
"name": "conditionalExpects",
|
|
24746
24869
|
"plugin": "vitest",
|
|
24747
|
-
"preset": "
|
|
24748
|
-
"
|
|
24870
|
+
"preset": "logical",
|
|
24871
|
+
"status": "implemented"
|
|
24749
24872
|
},
|
|
24750
24873
|
"oxlint": [{
|
|
24751
24874
|
"name": "vitest/no-conditional-expect",
|
|
@@ -25060,7 +25183,8 @@ var data_default = [
|
|
|
25060
25183
|
"name": "hooksBeforeTestCases",
|
|
25061
25184
|
"plugin": "vitest",
|
|
25062
25185
|
"preset": "stylistic",
|
|
25063
|
-
"strictness": "strict"
|
|
25186
|
+
"strictness": "strict",
|
|
25187
|
+
"status": "implemented"
|
|
25064
25188
|
},
|
|
25065
25189
|
"oxlint": [{
|
|
25066
25190
|
"name": "vitest/prefer-hooks-on-top",
|
|
@@ -25438,7 +25562,11 @@ var data_default = [
|
|
|
25438
25562
|
"name": "testCasePaddingLines",
|
|
25439
25563
|
"plugin": "vitest",
|
|
25440
25564
|
"status": "implemented"
|
|
25441
|
-
}
|
|
25565
|
+
},
|
|
25566
|
+
"oxlint": [{
|
|
25567
|
+
"name": "vitest/padding-around-test-blocks",
|
|
25568
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/vitest/padding-around-test-blocks.html"
|
|
25569
|
+
}]
|
|
25442
25570
|
},
|
|
25443
25571
|
{
|
|
25444
25572
|
"eslint": [{
|
|
@@ -26495,7 +26623,11 @@ var data_default = [
|
|
|
26495
26623
|
"name": "computedAsyncProperties",
|
|
26496
26624
|
"plugin": "vue",
|
|
26497
26625
|
"preset": "logical"
|
|
26498
|
-
}
|
|
26626
|
+
},
|
|
26627
|
+
"oxlint": [{
|
|
26628
|
+
"name": "vue/no-async-in-computed-properties",
|
|
26629
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/vue/no-async-in-computed-properties.html"
|
|
26630
|
+
}]
|
|
26499
26631
|
},
|
|
26500
26632
|
{
|
|
26501
26633
|
"eslint": [{
|
|
@@ -26532,7 +26664,11 @@ var data_default = [
|
|
|
26532
26664
|
"name": "computedPropertySideEffects",
|
|
26533
26665
|
"plugin": "vue",
|
|
26534
26666
|
"preset": "logical"
|
|
26535
|
-
}
|
|
26667
|
+
},
|
|
26668
|
+
"oxlint": [{
|
|
26669
|
+
"name": "vue/no-side-effects-in-computed-properties",
|
|
26670
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/vue/no-side-effects-in-computed-properties.html"
|
|
26671
|
+
}]
|
|
26536
26672
|
},
|
|
26537
26673
|
{
|
|
26538
26674
|
"eslint": [{
|
|
@@ -27434,7 +27570,11 @@ var data_default = [
|
|
|
27434
27570
|
"name": "keyDuplicates",
|
|
27435
27571
|
"plugin": "vue",
|
|
27436
27572
|
"preset": "logical"
|
|
27437
|
-
}
|
|
27573
|
+
},
|
|
27574
|
+
"oxlint": [{
|
|
27575
|
+
"name": "vue/no-dupe-keys",
|
|
27576
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/vue/no-dupe-keys.html"
|
|
27577
|
+
}]
|
|
27438
27578
|
},
|
|
27439
27579
|
{
|
|
27440
27580
|
"eslint": [{
|
|
@@ -27868,7 +28008,11 @@ var data_default = [
|
|
|
27868
28008
|
"name": "optionalPropDefaults",
|
|
27869
28009
|
"plugin": "vue",
|
|
27870
28010
|
"preset": "logical"
|
|
27871
|
-
}
|
|
28011
|
+
},
|
|
28012
|
+
"oxlint": [{
|
|
28013
|
+
"name": "vue/require-default-prop",
|
|
28014
|
+
"url": "https://oxc.rs/docs/guide/usage/linter/rules/vue/require-default-prop.html"
|
|
28015
|
+
}]
|
|
27872
28016
|
},
|
|
27873
28017
|
{
|
|
27874
28018
|
"biome": [{
|
|
@@ -29359,10 +29503,8 @@ const flintRulePluginSchema = z.union([
|
|
|
29359
29503
|
z.literal("yaml")
|
|
29360
29504
|
]);
|
|
29361
29505
|
const flintRulePresetSchema = z.union([
|
|
29362
|
-
z.literal("config"),
|
|
29363
29506
|
z.literal("javascript"),
|
|
29364
29507
|
z.literal("logical"),
|
|
29365
|
-
z.literal("none"),
|
|
29366
29508
|
z.literal("security"),
|
|
29367
29509
|
z.literal("sorting"),
|
|
29368
29510
|
z.literal("stylistic")
|
|
@@ -29374,23 +29516,31 @@ const flintRuleReferenceSchema = z.union([z.object({
|
|
|
29374
29516
|
}).strict(), z.object({
|
|
29375
29517
|
name: z.string().min(1),
|
|
29376
29518
|
plugin: flintRulePluginSchema,
|
|
29377
|
-
preset: flintRulePresetSchema.
|
|
29378
|
-
status: z.literal(["implemented"]).
|
|
29379
|
-
strictness: z.literal("strict").
|
|
29519
|
+
preset: flintRulePresetSchema.exactOptional(),
|
|
29520
|
+
status: z.literal(["implemented"]).exactOptional(),
|
|
29521
|
+
strictness: z.literal("strict").exactOptional()
|
|
29380
29522
|
}).strict()]);
|
|
29381
29523
|
const linterRuleReferenceSchema = z.object({
|
|
29382
29524
|
name: z.string(),
|
|
29383
29525
|
url: z.url()
|
|
29384
29526
|
}).strict();
|
|
29527
|
+
const linterNames = {
|
|
29528
|
+
biome: "Biome",
|
|
29529
|
+
deno: "Deno",
|
|
29530
|
+
eslint: "ESLint",
|
|
29531
|
+
markdownlint: "Markdownlint",
|
|
29532
|
+
oxlint: "Oxlint",
|
|
29533
|
+
stylelint: "Stylelint"
|
|
29534
|
+
};
|
|
29385
29535
|
const ruleDetailsSchema = z.object({
|
|
29386
|
-
biome: z.array(linterRuleReferenceSchema).
|
|
29387
|
-
deno: z.array(linterRuleReferenceSchema).
|
|
29388
|
-
eslint: z.array(linterRuleReferenceSchema).
|
|
29536
|
+
biome: z.array(linterRuleReferenceSchema).exactOptional(),
|
|
29537
|
+
deno: z.array(linterRuleReferenceSchema).exactOptional(),
|
|
29538
|
+
eslint: z.array(linterRuleReferenceSchema).exactOptional(),
|
|
29389
29539
|
flint: flintRuleReferenceSchema,
|
|
29390
|
-
markdownlint: z.array(linterRuleReferenceSchema).
|
|
29391
|
-
notes: z.string().
|
|
29392
|
-
oxlint: z.array(linterRuleReferenceSchema).
|
|
29393
|
-
stylelint: z.array(linterRuleReferenceSchema).
|
|
29540
|
+
markdownlint: z.array(linterRuleReferenceSchema).exactOptional(),
|
|
29541
|
+
notes: z.string().exactOptional(),
|
|
29542
|
+
oxlint: z.array(linterRuleReferenceSchema).exactOptional(),
|
|
29543
|
+
stylelint: z.array(linterRuleReferenceSchema).exactOptional()
|
|
29394
29544
|
}).strict();
|
|
29395
29545
|
const ruleDataSchema = z.array(ruleDetailsSchema);
|
|
29396
29546
|
//#endregion
|
|
@@ -29398,14 +29548,6 @@ const ruleDataSchema = z.array(ruleDetailsSchema);
|
|
|
29398
29548
|
function getFlintRuleId(pluginId, ruleId) {
|
|
29399
29549
|
return [pluginId, ruleId].join("/");
|
|
29400
29550
|
}
|
|
29401
|
-
const linterNames = {
|
|
29402
|
-
biome: "Biome",
|
|
29403
|
-
deno: "Deno",
|
|
29404
|
-
eslint: "ESLint",
|
|
29405
|
-
markdownlint: "Markdownlint",
|
|
29406
|
-
oxlint: "Oxlint",
|
|
29407
|
-
stylelint: "Stylelint"
|
|
29408
|
-
};
|
|
29409
29551
|
const ruleData = ruleDataSchema.parse(data_default);
|
|
29410
29552
|
//#endregion
|
|
29411
29553
|
export { getFlintRuleId, getRuleForPlugin, getRuleForPluginSafe, linterNames, ruleData };
|