Skip to content

Commit 6a7a1f0

Browse files
CopilotBruno-366
andcommitted
Fix npm deprecation warnings and SSR IndexedDB issue for Cloudflare deployment
Co-authored-by: Bruno-366 <81762173+Bruno-366@users.noreply.github.com>
1 parent bd52a24 commit 6a7a1f0

File tree

6 files changed

+808
-724
lines changed

6 files changed

+808
-724
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 29 deletions
This file was deleted.

_headers

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Cloudflare Pages configuration for security headers
2+
/*
3+
X-Frame-Options: DENY
4+
X-Content-Type-Options: nosniff
5+
X-XSS-Protection: 1; mode=block
6+
Referrer-Policy: strict-origin-when-cross-origin

eslint.config.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import eslint from '@eslint/js'
2+
import tseslint from 'typescript-eslint'
3+
import sveltePlugin from 'eslint-plugin-svelte'
4+
import globals from 'globals'
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
...tseslint.configs.recommended,
9+
...sveltePlugin.configs['flat/recommended'],
10+
{
11+
languageOptions: {
12+
globals: {
13+
...globals.browser,
14+
...globals.node
15+
}
16+
}
17+
},
18+
{
19+
files: ['**/*.svelte'],
20+
languageOptions: {
21+
parserOptions: {
22+
parser: tseslint.parser
23+
}
24+
}
25+
},
26+
{
27+
rules: {
28+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }]
29+
}
30+
},
31+
{
32+
ignores: ['dist/**', '.svelte-kit/**', 'build/**']
33+
}
34+
)

0 commit comments

Comments
 (0)