fix frontend scripts lint

This commit is contained in:
Hazelnoot 2025-10-07 19:52:01 -04:00
parent 8a74f79378
commit 0c9fe00c12
3 changed files with 36 additions and 15 deletions

View file

@ -171,6 +171,7 @@ const index_photos = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cs
export { index_photos as default };
`.slice(1), { ecmaVersion: 'latest', sourceType: 'module' });
// @ts-expect-error This is wrong, but not my problem
unwindCssModuleClassName(ast);
expect(generate(ast)).toBe(`
import {c as api, d as store, i as i18n, aD as notePage, bN as ImgWithBlurhash, bY as getStaticImageUrl, _ as _export_sfc} from './app-!~{001}~.js';
@ -438,6 +439,7 @@ const MkDateSeparatedList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModul
export { MkDateSeparatedList as M };
`.slice(1), { ecmaVersion: 'latest', sourceType: 'module' });
// @ts-expect-error This is wrong, but not my problem
unwindCssModuleClassName(ast);
expect(generate(ast)).toBe(`
import {a7 as getCurrentInstance, b as defineComponent, G as useCssModule, a1 as h, H as TransitionGroup} from './!~{002}~.js';