From 2151b7d2bded5606ffaf74b52526cf234abe6a99 Mon Sep 17 00:00:00 2001
From: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com>
Date: Fri, 9 Aug 2024 18:33:10 +0200
Subject: [PATCH] Fix linting issues
Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com>
---
test/fixtures/cors/nuxt.config.ts | 2 ++
test/fixtures/cors/pages/star.vue | 5 ++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/test/fixtures/cors/nuxt.config.ts b/test/fixtures/cors/nuxt.config.ts
index c5581ea1..0005cab2 100644
--- a/test/fixtures/cors/nuxt.config.ts
+++ b/test/fixtures/cors/nuxt.config.ts
@@ -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
}
@@ -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
}
diff --git a/test/fixtures/cors/pages/star.vue b/test/fixtures/cors/pages/star.vue
index 3ea8861a..f932b8a4 100644
--- a/test/fixtures/cors/pages/star.vue
+++ b/test/fixtures/cors/pages/star.vue
@@ -1,4 +1,3 @@
-