Skip to content

Commit

Permalink
Merge pull request #7322 from QwikDev/v2-fix-build-2
Browse files Browse the repository at this point in the history
fix: build and codeql
  • Loading branch information
wmertens authored Feb 7, 2025
2 parents cb8013c + 5f88797 commit 9982b1d
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 9982b1d

Please sign in to comment.