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

index.ts

80 lines4.5 KB

1import { definePlugin } from "@oxlint/plugins";
2​
3import maxSettingsDescriptionLength from "./rules/max-settings-description-length.ts";
4import namespaceNodeImports from "./rules/namespace-node-imports.ts";
5import noDomTestEnvironment from "./rules/no-dom-test-environment.ts";
6import noEmDashCopy from "./rules/no-em-dash-copy.ts";
7import noFrameWaitsInBrowserTests from "./rules/no-frame-waits-in-browser-tests.ts";
8import noGlobalProcessRuntime from "./rules/no-global-process-runtime.ts";
9import noHermesUnsupportedApis from "./rules/no-hermes-unsupported-apis.ts";
10import noHooklessUseFunction from "./rules/no-hookless-use-function.ts";
11import noInlineSchemaCompile from "./rules/no-inline-schema-compile.ts";
12import noLowValueComments from "./rules/no-low-value-comments.ts";
13import noManualMemo from "./rules/no-manual-memo.ts";
14import noManualEffectRuntimeInTests from "./rules/no-manual-effect-runtime-in-tests.ts";
15import noMobileUniwindThemeEscapeHatches from "./rules/no-mobile-uniwind-theme-escape-hatches.ts";
16import noAmbiguousDetailNavigation from "./rules/no-ambiguous-detail-navigation.ts";
17import noMobilePullRequestGlyphLiterals from "./rules/no-mobile-pull-request-glyph-literals.ts";
18import noNativeTitleTooltip from "./rules/no-native-title-tooltip.ts";
19import noSparklesIcon from "./rules/no-sparkles-icon.ts";
20import noUnreasonedStateSync from "./rules/no-unreasoned-state-sync.ts";
21import noUntranslatedCopy from "./rules/no-untranslated-copy.ts";
22import requireRegisteredListScroll from "./rules/require-registered-list-scroll.ts";
23import noOutsetStateIndicators from "./rules/no-outset-state-indicators.ts";
24import noPollingLoopInTests from "./rules/no-polling-loop-in-tests.ts";
25import noRawMcpRegistration from "./rules/no-raw-mcp-registration.ts";
26import noRawResizeObserver from "./rules/no-raw-resize-observer.ts";
27import noRealTimeWaitInTests from "./rules/no-real-time-wait-in-tests.ts";
28import noTestInLoop from "./rules/no-test-in-loop.ts";
29import noTestTimeoutOrUnreasonedSkip from "./rules/no-test-timeout-or-unreasoned-skip.ts";
30import noRpcPermissionBypass from "./rules/no-rpc-permission-bypass.ts";
31import noUnscopedHas from "./rules/no-unscoped-has.ts";
32import noWallClockInTests from "./rules/no-wall-clock-in-tests.ts";
33import preferCatchTags from "./rules/prefer-catch-tags.ts";
34import preferEffectFn from "./rules/prefer-effect-fn.ts";
35import requireCenteredScrollGutter from "./rules/require-centered-scroll-gutter.ts";
36import requireDisposableRender from "./rules/require-disposable-render.ts";
37import requireSuppressionReason from "./rules/require-suppression-reason.ts";
38​
39export default definePlugin({
40 meta: {
41 name: "t3code",
42 },
43 rules: {
44 "max-settings-description-length": maxSettingsDescriptionLength,
45 "namespace-node-imports": namespaceNodeImports,
46 "no-dom-test-environment": noDomTestEnvironment,
47 "no-em-dash-copy": noEmDashCopy,
48 "no-frame-waits-in-browser-tests": noFrameWaitsInBrowserTests,
49 "no-global-process-runtime": noGlobalProcessRuntime,
50 "no-hermes-unsupported-apis": noHermesUnsupportedApis,
51 "no-hookless-use-function": noHooklessUseFunction,
52 "no-inline-schema-compile": noInlineSchemaCompile,
53 "no-low-value-comments": noLowValueComments,
54 "no-manual-effect-runtime-in-tests": noManualEffectRuntimeInTests,
55 "no-manual-memo": noManualMemo,
56 "no-mobile-uniwind-theme-escape-hatches": noMobileUniwindThemeEscapeHatches,
57 "no-ambiguous-detail-navigation": noAmbiguousDetailNavigation,
58 "no-mobile-pull-request-glyph-literals": noMobilePullRequestGlyphLiterals,
59 "no-native-title-tooltip": noNativeTitleTooltip,
60 "no-sparkles-icon": noSparklesIcon,
61 "no-unreasoned-state-sync": noUnreasonedStateSync,
62 "no-untranslated-copy": noUntranslatedCopy,
63 "require-registered-list-scroll": requireRegisteredListScroll,
64 "no-outset-state-indicators": noOutsetStateIndicators,
65 "no-polling-loop-in-tests": noPollingLoopInTests,
66 "no-raw-mcp-registration": noRawMcpRegistration,
67 "no-raw-resize-observer": noRawResizeObserver,
68 "no-real-time-wait-in-tests": noRealTimeWaitInTests,
69 "no-test-in-loop": noTestInLoop,
70 "no-test-timeout-or-unreasoned-skip": noTestTimeoutOrUnreasonedSkip,
71 "no-rpc-permission-bypass": noRpcPermissionBypass,
72 "no-unscoped-has": noUnscopedHas,
73 "no-wall-clock-in-tests": noWallClockInTests,
74 "prefer-catch-tags": preferCatchTags,
75 "prefer-effect-fn": preferEffectFn,
76 "require-centered-scroll-gutter": requireCenteredScrollGutter,
77 "require-disposable-render": requireDisposableRender,
78 "require-suppression-reason": requireSuppressionReason,
79 },
80});