Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: link semi in jsx (#38065)

Pavel Feldman45c6cc833bc9
diff --git a/eslint.config.mjs b/eslint.config.mjs
index 4f38c9e450..b926b28135 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -309,6 +309,13 @@ function reactPackageSection(packageName) {
rules: {
...baseRules,
"no-console": 2,
+ "no-restricted-syntax": [
+ "error",
+ {
+ selector: "JSXElement > JSXText[value=/^;\n/]",
+ message: 'Unexpected semicolon after JSX element',
+ },
+ ]
},
};
}