chore(playground): add more nursery rules
MODIFY
crates/rome_js_analyze/src/analyzers/nursery/use_optional_chain.rs
crates/rome_js_analyze/src/analyzers/nursery/use_optional_chain.rs
-use std::cmp::Ordering;
-use std::collections::VecDeque;
-use std::iter;
-
use rome_analyze::{
context::RuleContext, declare_rule, ActionCategory, Ast, Rule, RuleCategory, RuleDiagnostic,
};
@@ -13,6 +9,9 @@ use rome_js_syntax::{
JsStaticMemberExpression, OperatorPrecedence, T,
};
use rome_rowan::{declare_node_union, AstNode, AstNodeExt, BatchMutationExt, SyntaxResult};
+use std::cmp::Ordering;
+use std::collections::VecDeque;
+use std::iter;
use crate::JsRuleAction;

MODIFY
website/playground/src/romeWorker.ts
website/playground/src/romeWorker.ts
@@ -116,6 +116,9 @@ self.addEventListener("message", async (e) => {
noUnusedVariables: "error",
noUnreachable: "error",
useCamelCase: "error",
+ noRenderReturnValue: "error",
+ useButtonType: "error",
+ useOptionalChain: "error",
},
},
};

chore(playground): add more nursery rules (#3260)