From 9b6008c6e0e1b53bc59de700e47b70aa2c7deb66 Mon Sep 17 00:00:00 2001 From: Sysix Date: Sat, 12 Oct 2024 03:38:39 +0200 Subject: [PATCH] feat(build): improve ts definitions --- scripts/__snapshots__/rules-generator.test.ts.snap | 8 ++++---- src/__snapshots__/rules-by-scope.spec.ts.snap | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/__snapshots__/rules-generator.test.ts.snap b/scripts/__snapshots__/rules-generator.test.ts.snap index 315e0a9..edd8fe6 100644 --- a/scripts/__snapshots__/rules-generator.test.ts.snap +++ b/scripts/__snapshots__/rules-generator.test.ts.snap @@ -5,11 +5,11 @@ exports[`RulesGenerator > RulesGenerator generates rules correctly > byCategory const styleRules = { 'rulename-with-mod': "off" -} +} as const const correctnessRules = { '@typescript-eslint/rulename-without-mod': "off" -} +} as const export { styleRules, @@ -22,11 +22,11 @@ exports[`RulesGenerator > RulesGenerator generates rules correctly > byScope 1`] const eslintRules = { 'rulename-with-mod': "off" -} +} as const const typescriptRules = { '@typescript-eslint/rulename-without-mod': "off" -} +} as const export { eslintRules, diff --git a/src/__snapshots__/rules-by-scope.spec.ts.snap b/src/__snapshots__/rules-by-scope.spec.ts.snap index 3b25e64..8c4020f 100644 --- a/src/__snapshots__/rules-by-scope.spec.ts.snap +++ b/src/__snapshots__/rules-by-scope.spec.ts.snap @@ -863,6 +863,9 @@ exports[`contains all the oxlint rules 1`] = ` "no-duplicate-case": [ 0, ], + "no-else-return": [ + 0, + ], "no-empty": [ 0, ], @@ -1040,6 +1043,9 @@ exports[`contains all the oxlint rules 1`] = ` "no-this-before-super": [ 0, ], + "no-throw-literal": [ + 0, + ], "no-trailing-spaces": [ 0, ],