Skip to content

Commit 6011610

Browse files
committed
chore: minor cleanups
1 parent d4a0243 commit 6011610

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/no-misused-capture-owner-stack.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export const RULE_FEATURES = [
1313
"EXP",
1414
] as const satisfies RuleFeature[];
1515

16-
export type MessageID =
17-
| "useNamespaceImport"
16+
export type MessageID
17+
= | "useNamespaceImport"
1818
| "missingDevelopmentOnlyCheck";
1919

2020
export default createRule<[], MessageID>({
@@ -72,8 +72,5 @@ export function create(context: RuleContext<MessageID, []>): RuleListener {
7272
function isDevelopmentOnlyCheck(node: TSESTree.Node) {
7373
if (node.type !== T.IfStatement) return false;
7474
if (AST.isProcessEnvNodeEnvCompare(node.test, "!==", "production")) return true;
75-
// if (AST.isProcessEnvNodeEnvCompare(node.test, "===", "development")) return true;
76-
// if (AST.isProcessEnvNodeEnvCompare(node.test, "!=", "production")) return true;
77-
// if (AST.isProcessEnvNodeEnvCompare(node.test, "==", "development")) return true;
7875
return false;
7976
}

0 commit comments

Comments
 (0)