Skip to content

Commit

Permalink
fix: build and codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
Varixo committed Feb 7, 2025
1 parent cb8013c commit 5f88797
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .changeset/kind-toes-glow.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
'qwik-docs': minor
'@qwik.dev/core': minor
'@qwik.dev/core': patch
---

fix: export SVG type from qwik/core
6 changes: 3 additions & 3 deletions packages/eslint-plugin-qwik/src/loaderLocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ If you understand this, you can disable this warning with:
create(context) {
const routesDir = context.options?.[0]?.routesDir ?? 'src/routes';
const path = normalizePath(context.filename ?? context.getFilename());
const isLayout = /\/layout(|!|-.+)\.(j|t)sx?$/.test(path);
const isIndex = /\/index(|!|@.+)\.(j|t)sx?$/.test(path);
const isPlugin = /\/plugin(|@.+)\.(j|t)sx?$/.test(path);
const isLayout = /\/layout(|!|-[^/]+)\.(j|t)sx?$/.test(path);
const isIndex = /\/index(|!|@[^/]+)\.(j|t)sx?$/.test(path);
const isPlugin = /\/plugin(|@[^/]+)\.(j|t)sx?$/.test(path);
const isInsideRoutes = new RegExp(`/${routesDir}/`).test(path);

const canContainLoader = isInsideRoutes && (isIndex || isLayout || isPlugin);
Expand Down

0 comments on commit 5f88797

Please sign in to comment.