diff --git a/packages/rule-data/src/data.json b/packages/rule-data/src/data.json index 946a200715..b489f7f0f7 100644 --- a/packages/rule-data/src/data.json +++ b/packages/rule-data/src/data.json @@ -5073,7 +5073,7 @@ "flint": { "name": "automaticJsoncRules", "plugin": "json", - "preset": "config" + "status": "skipped" } }, { @@ -12350,7 +12350,7 @@ "flint": { "name": "compilerOptions", "plugin": "react", - "preset": "config" + "preset": "logical" } }, { @@ -13059,7 +13059,7 @@ "flint": { "name": "gating", "plugin": "react", - "preset": "config" + "preset": "logical" } }, { @@ -16051,7 +16051,7 @@ "flint": { "name": "arrayFillWithReferenceTypes", "plugin": "ts", - "status": "skipped" + "preset": "logical" }, "oxlint": [ { @@ -17734,7 +17734,7 @@ "flint": { "name": "confusingArrayWithCalls", "plugin": "ts", - "status": "skipped" + "preset": "stylistic" }, "oxlint": [ { @@ -19460,7 +19460,8 @@ "flint": { "name": "explicitTimerDelays", "plugin": "ts", - "status": "skipped" + "preset": "stylistic", + "strictness": "strict" }, "oxlint": [ { @@ -20670,7 +20671,7 @@ "flint": { "name": "importExtraneousDependencies", "plugin": "ts", - "preset": "none" + "status": "skipped" }, "notes": "Superseded by Knip." }, @@ -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": [ @@ -23752,7 +23754,7 @@ "flint": { "name": "numberCoercions", "plugin": "ts", - "status": "skipped" + "preset": "logical" }, "oxlint": [ { diff --git a/packages/rule-data/src/data.schema.json b/packages/rule-data/src/data.schema.json index 75ed35f2a2..d01f497321 100644 --- a/packages/rule-data/src/data.schema.json +++ b/packages/rule-data/src/data.schema.json @@ -55,10 +55,8 @@ "type": "string", "description": "The preset this rule belongs to.", "enum": [ - "config", "javascript", "logical", - "none", "security", "sorting", "stylistic" diff --git a/packages/rule-data/src/schemas.ts b/packages/rule-data/src/schemas.ts index 88875b540c..e66b922ce6 100644 --- a/packages/rule-data/src/schemas.ts +++ b/packages/rule-data/src/schemas.ts @@ -60,19 +60,15 @@ const flintRulePluginSchema: z.ZodType = z.union([ ]); type FlintPreset = - | "config" | "javascript" | "logical" - | "none" | "security" | "sorting" | "stylistic"; const flintRulePresetSchema: z.ZodType = z.union([ - z.literal("config"), z.literal("javascript"), z.literal("logical"), - z.literal("none"), z.literal("security"), z.literal("sorting"), z.literal("stylistic"),