Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions packages/rule-data/src/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -5073,7 +5073,7 @@
"flint": {
"name": "automaticJsoncRules",
"plugin": "json",
"preset": "config"
"status": "skipped"
}
},
{
Expand Down Expand Up @@ -12350,7 +12350,7 @@
"flint": {
"name": "compilerOptions",
"plugin": "react",
"preset": "config"
"preset": "logical"
}
},
{
Expand Down Expand Up @@ -13059,7 +13059,7 @@
"flint": {
"name": "gating",
"plugin": "react",
"preset": "config"
"preset": "logical"
}
},
{
Expand Down Expand Up @@ -16051,7 +16051,7 @@
"flint": {
"name": "arrayFillWithReferenceTypes",
"plugin": "ts",
"status": "skipped"
"preset": "logical"
},
"oxlint": [
{
Expand Down Expand Up @@ -17734,7 +17734,7 @@
"flint": {
"name": "confusingArrayWithCalls",
"plugin": "ts",
"status": "skipped"
"preset": "stylistic"
},
"oxlint": [
{
Expand Down Expand Up @@ -19460,7 +19460,8 @@
"flint": {
"name": "explicitTimerDelays",
"plugin": "ts",
"status": "skipped"
"preset": "stylistic",
"strictness": "strict"
},
"oxlint": [
{
Expand Down Expand Up @@ -20670,7 +20671,7 @@
"flint": {
"name": "importExtraneousDependencies",
"plugin": "ts",
"preset": "none"
"status": "skipped"
},
"notes": "Superseded by Knip."
},
Expand Down Expand Up @@ -22715,7 +22716,8 @@
"name": "unicorn/max-nested-calls",
"url": "https://oxc.rs/docs/guide/usage/linter/rules/unicorn/max-nested-calls.html"
}
]
],
"notes": "Overly opinionated."
},
{
"eslint": [
Expand Down Expand Up @@ -23752,7 +23754,7 @@
"flint": {
"name": "numberCoercions",
"plugin": "ts",
"status": "skipped"
"preset": "logical"
},
"oxlint": [
{
Expand Down
2 changes: 0 additions & 2 deletions packages/rule-data/src/data.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@
"type": "string",
"description": "The preset this rule belongs to.",
"enum": [
"config",
"javascript",
"logical",
"none",
"security",
"sorting",
"stylistic"
Expand Down
4 changes: 0 additions & 4 deletions packages/rule-data/src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,15 @@ const flintRulePluginSchema: z.ZodType<FlintPlugin> = z.union([
]);

type FlintPreset =
| "config"
| "javascript"
| "logical"
| "none"
| "security"
| "sorting"
| "stylistic";

const flintRulePresetSchema: z.ZodType<FlintPreset> = z.union([
z.literal("config"),
z.literal("javascript"),
z.literal("logical"),
z.literal("none"),
z.literal("security"),
z.literal("sorting"),
z.literal("stylistic"),
Expand Down