Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

index.ts

32 lines1.5 KB

1import { definePlugin } from "@oxlint/plugins";
2​
3import namespaceNodeImports from "./rules/namespace-node-imports.ts";
4import noGlobalProcessRuntime from "./rules/no-global-process-runtime.ts";
5import noHermesUnsupportedApis from "./rules/no-hermes-unsupported-apis.ts";
6import noInlineSchemaCompile from "./rules/no-inline-schema-compile.ts";
7import noManualEffectRuntimeInTests from "./rules/no-manual-effect-runtime-in-tests.ts";
8import noMobileUniwindThemeEscapeHatches from "./rules/no-mobile-uniwind-theme-escape-hatches.ts";
9import noNativeTitleTooltip from "./rules/no-native-title-tooltip.ts";
10import noTestInLoop from "./rules/no-test-in-loop.ts";
11import noUnscopedHas from "./rules/no-unscoped-has.ts";
12import preferCatchTags from "./rules/prefer-catch-tags.ts";
13import requireSuppressionReason from "./rules/require-suppression-reason.ts";
14​
15export default definePlugin({
16 meta: {
17 name: "t3code",
18 },
19 rules: {
20 "namespace-node-imports": namespaceNodeImports,
21 "no-global-process-runtime": noGlobalProcessRuntime,
22 "no-hermes-unsupported-apis": noHermesUnsupportedApis,
23 "no-inline-schema-compile": noInlineSchemaCompile,
24 "no-manual-effect-runtime-in-tests": noManualEffectRuntimeInTests,
25 "no-mobile-uniwind-theme-escape-hatches": noMobileUniwindThemeEscapeHatches,
26 "no-native-title-tooltip": noNativeTitleTooltip,
27 "no-test-in-loop": noTestInLoop,
28 "no-unscoped-has": noUnscopedHas,
29 "prefer-catch-tags": preferCatchTags,
30 "require-suppression-reason": requireSuppressionReason,
31 },
32});