test: Playwright tests #6

Merged
aniva merged 6 commits from build/testing into main 2024-09-29 00:18:39 -07:00
2 changed files with 12 additions and 1 deletions
Showing only changes of commit b7156d0c93 - Show all commits

View File

@ -15,4 +15,15 @@ export default [
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
},
],
},
},
];

View File

@ -12,7 +12,7 @@ const alertRegex = /^:>(NOTE|TIP|IMPORTANT|WARNING|CAUTION)/i;
*/
function remarkAlert/*: Plugin<[Option?], Root> = */() /*=>*/ {
return (tree) => {
visit(tree, "blockquote", (node, index, parent) => {
visit(tree, "blockquote", (node, _index, _parent) => {
let alertType = '';
let title = '';
let isNext = true;