Skip to content

Commit

Permalink
Prettier sort test attributes (facebook#6384)
Browse files Browse the repository at this point in the history
  • Loading branch information
zurfyx authored and 2wheeh committed Jul 17, 2024
1 parent d110abc commit 4ca9766
Show file tree
Hide file tree
Showing 39 changed files with 517 additions and 505 deletions.
8 changes: 6 additions & 2 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ module.exports = {
printWidth: 80,
trailingComma: 'all',
htmlWhitespaceSensitivity: 'ignore',
attributeGroups: ['$DEFAULT', '^data-'],
plugins: ['prettier-plugin-tailwindcss'],
attributeGroups: ['^class$', '^(id|name)$', '$DEFAULT', '^aria-', '^data-'],
attributeSort: 'ASC',
plugins: [
'prettier-plugin-tailwindcss',
'prettier-plugin-organize-attributes',
],
};
2 changes: 1 addition & 1 deletion examples/react-plain-text/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script src="/src/main.tsx" type="module"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion examples/react-rich-collab/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script src="/src/main.tsx" type="module"></script>
</body>
</html>
8 changes: 4 additions & 4 deletions examples/react-rich-collab/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ <h1 align="center" style="margin: 0; font-size: 1.3em">
React.js Collaborative Lexical Example (see iframes below)
</h1>
<iframe
width="50%"
name="left"
src="/app"
style="
Expand All @@ -20,9 +19,9 @@ <h1 align="center" style="margin: 0; font-size: 1.3em">
top: 40px;
left: 0;
height: calc(100% - 44px);
"></iframe>
"
width="50%"></iframe>
<iframe
width="50%"
name="right"
src="/app"
style="
Expand All @@ -32,6 +31,7 @@ <h1 align="center" style="margin: 0; font-size: 1.3em">
top: 40px;
left: calc(50% + 1px);
height: calc(100% - 44px);
"></iframe>
"
width="50%"></iframe>
</body>
</html>
2 changes: 1 addition & 1 deletion examples/react-rich/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script src="/src/main.tsx" type="module"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion examples/vanilla-js-plugin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script src="/src/main.ts" type="module"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion examples/vanilla-js/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script src="/src/main.ts" type="module"></script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="default-src 'self'" http-equiv="Content-Security-Policy" />

<meta
name="viewport"
content="width=device-width, initial-scale=1, user-scalable=no" />

<link rel="stylesheet" href="../Style.css" />
<script src="../Script.js" defer></script>
<link href="../Style.css" rel="stylesheet" />
<script defer src="../Script.js"></script>
</head>
<body>
<img
src="../Icon.png"
width="128"
alt="Lexical Developer Tools Icon"
height="128"
alt="Lexical Developer Tools Icon" />
src="../Icon.png"
width="128" />
<p class="state-unknown">
You can turn on Lexical Developer Tools’s extension in Safari Extensions
preferences.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<div id="root">Loading Lexical DevTools UI...</div>
<script type="module" src="./main.tsx"></script>
<script src="./main.tsx" type="module"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="module" src="./main.ts"></script>
<script src="./main.ts" type="module"></script>
</head>
</html>
2 changes: 1 addition & 1 deletion packages/lexical-devtools/src/entrypoints/popup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="./main.tsx"></script>
<script src="./main.tsx" type="module"></script>
</body>
</html>
Loading

0 comments on commit 4ca9766

Please sign in to comment.