Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Sthamer <[email protected]>
  • Loading branch information
P4sca1 committed Aug 9, 2024
1 parent 1f70e88 commit 2151b7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions test/fixtures/cors/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default defineNuxtConfig({
'/regexp-single': {
security: {
corsHandler: {
// eslint-disable-next-line no-useless-escape -- This is parsed as a regular expression, so the escape is required.
origin: '(a|b)\\.example\\.com',
useRegExp: true
}
Expand All @@ -44,6 +45,7 @@ export default defineNuxtConfig({
'/regexp-multi': {
security: {
corsHandler: {
// eslint-disable-next-line no-useless-escape -- This is parsed as a regular expression, so the escape is required.
origin: ['(a|b)\.example\.com', '(.*)\\.foo.example\\.com'],
useRegExp: true
}
Expand Down
5 changes: 2 additions & 3 deletions test/fixtures/cors/pages/star.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<template>
<div>star</div>
</template>

<div>star</div>
</template>

0 comments on commit 2151b7d

Please sign in to comment.