feedback: remove parser changes
MODIFY
packages/@romejs/js-compiler/lint/rules/index.ts
packages/@romejs/js-compiler/lint/rules/index.ts
*/
// EVERYTHING BELOW IS AUTOGENERATED. SEE SCRIPTS FOLDER FOR UPDATE SCRIPTS
-
import camelCase from "./regular/camelCase";
import caseSingleStatement from "./regular/caseSingleStatement";
import confusingLanguage from "./regular/confusingLanguage";
@@ -17,16 +16,16 @@ import emptyBlocks from "./regular/emptyBlocks";
import emptyMatches from "./regular/emptyMatches";
import getterReturn from "./regular/getterReturn";
import importDefaultBasename from "./regular/importDefaultBasename";
-import jsxA11yAltText from "./react/jsxA11yAltText";
-import jsxA11yHeadingHasContent from "./react/jsxA11yHeadingHasContent";
-import jsxA11yHTMLHasLang from "./react/jsxA11yHTMLHasLang";
-import jsxA11yIframeHasTitle from "./react/jsxA11yIframeHasTitle";
-import jsxA11yImgRedundantAlt from "./react/jsxA11yImgRedundantAlt";
-import jsxA11yNoAccessKey from "./react/jsxA11yNoAccessKey";
-import jsxA11yNoAutofocus from "./react/jsxA11yNoAutofocus";
-import jsxA11yNoDistractingElements from "./react/jsxA11yNoDistractingElements";
-import jsxA11yNoTargetBlank from "./react/jsxA11yNoTargetBlank";
-import jsxA11yScope from "./react/jsxA11yScope";
+import jsxA11YAltText from "./react/jsxA11yAltText";
+import jsxA11YHeadingHasContent from "./react/jsxA11yHeadingHasContent";
+import jsxA11YHTMLHasLang from "./react/jsxA11yHTMLHasLang";
+import jsxA11YIframeHasTitle from "./react/jsxA11yIframeHasTitle";
+import jsxA11YImgRedundantAlt from "./react/jsxA11yImgRedundantAlt";
+import jsxA11YNoAccessKey from "./react/jsxA11yNoAccessKey";
+import jsxA11YNoAutofocus from "./react/jsxA11yNoAutofocus";
+import jsxA11YNoDistractingElements from "./react/jsxA11yNoDistractingElements";
+import jsxA11YNoTargetBlank from "./react/jsxA11yNoTargetBlank";
+import jsxA11YScope from "./react/jsxA11yScope";
import jsxKey from "./react/jsxKey";
import jsxNoCommentText from "./react/jsxNoCommentText";
import negationElse from "./regular/negationElse";
@@ -89,16 +88,16 @@ export const lintTransforms = [
emptyMatches,
getterReturn,
importDefaultBasename,
- jsxA11yAltText,
- jsxA11yHeadingHasContent,
- jsxA11yHTMLHasLang,
- jsxA11yIframeHasTitle,
- jsxA11yImgRedundantAlt,
- jsxA11yNoAccessKey,
- jsxA11yNoAutofocus,
- jsxA11yNoDistractingElements,
- jsxA11yNoTargetBlank,
- jsxA11yScope,
+ jsxA11YAltText,
+ jsxA11YHeadingHasContent,
+ jsxA11YHTMLHasLang,
+ jsxA11YIframeHasTitle,
+ jsxA11YImgRedundantAlt,
+ jsxA11YNoAccessKey,
+ jsxA11YNoAutofocus,
+ jsxA11YNoDistractingElements,
+ jsxA11YNoTargetBlank,
+ jsxA11YScope,
jsxKey,
jsxNoCommentText,
negationElse,

MODIFY
packages/@romejs/js-formatter/test-fixtures/typescript/tsConstructorType/input.test.md
packages/@romejs/js-formatter/test-fixtures/typescript/tsConstructorType/input.test.md
@@ -14,9 +14,7 @@ let d: new(x: number) => void;
### `Output`
```javascript
-type Class<T> = new (
- ...args: any
-) => T;
+type Class<T> = new (...args: any) => T;
let d: new (x: number) => void;
```

MODIFY
packages/@romejs/string-markup/parse.ts
packages/@romejs/string-markup/parse.ts
@@ -51,7 +51,6 @@ tags.set("highlight", ["i"]);
tags.set("table", []);
tags.set("tr", []);
tags.set("td", ["align"]);
-tags.set("th", []);
tags.set("hr", []);
tags.set("pad", ["width", "align"]);
tags.set("nobr", []);
@@ -62,7 +61,7 @@ tags.set("ol", ["reversed", "start"]);
// Tags that only support certain other tags as their children
const tagsToOnlyChildren: Map<MarkupTagName, Array<MarkupTagName>> = new Map();
tagsToOnlyChildren.set("table", ["tr"]);
-tagsToOnlyChildren.set("tr", ["th", "td"]);
+tagsToOnlyChildren.set("tr", ["td"]);
tagsToOnlyChildren.set("ol", ["li"]);
tagsToOnlyChildren.set("ul", ["li"]);
@@ -70,7 +69,6 @@ tagsToOnlyChildren.set("ul", ["li"]);
const tagsToOnlyParent: Map<MarkupTagName, Array<MarkupTagName>> = new Map();
tagsToOnlyParent.set("tr", ["table"]);
tagsToOnlyParent.set("td", ["tr"]);
-tagsToOnlyParent.set("th", ["tr"]);
tagsToOnlyParent.set("li", ["ol", "ul"]);
//

MODIFY
packages/@romejs/string-markup/types.ts
packages/@romejs/string-markup/types.ts
@@ -63,7 +63,6 @@ export type MarkupTagName =
| "table"
| "tr"
| "td"
- | "th"
| "nobr"
| "ol"
| "ul"

feedback: remove parser changes