Skip to content

Commit 5d1b73b

Browse files
shamscornerShamim
andauthored
Update deps (#13)
* chore: update deps * chore: improve layout --------- Co-authored-by: Shamim <shossain@secureship.ca>
1 parent 19f8598 commit 5d1b73b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+5117
-4323
lines changed

.eslintignore

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

.eslintrc.cjs

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

.github/dependabot.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "npm"
9-
directory: "/"
8+
- package-ecosystem: 'npm'
9+
directory: '/'
1010
schedule:
11-
interval: "weekly"
11+
interval: 'weekly'
1212
commit-message:
13-
prefix: "npm"
13+
prefix: 'npm'
1414
groups:
1515
all:
1616
patterns:
17-
- "*"
17+
- '*'

eslint.config.js

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
import js from '@eslint/js';
2+
import prettier from 'eslint-config-prettier';
3+
import simpleImportSort from 'eslint-plugin-simple-import-sort';
4+
import svelte from 'eslint-plugin-svelte';
5+
import globals from 'globals';
6+
import ts from 'typescript-eslint';
7+
8+
/** @type {import('eslint').Linter.FlatConfig[]} */
9+
export default [
10+
js.configs.recommended,
11+
...ts.configs.recommended,
12+
...svelte.configs['flat/recommended'],
13+
prettier,
14+
...svelte.configs['flat/prettier'],
15+
{
16+
languageOptions: {
17+
globals: {
18+
...globals.browser,
19+
...globals.node
20+
}
21+
}
22+
},
23+
{
24+
files: ['**/*.svelte'],
25+
languageOptions: {
26+
parserOptions: {
27+
parser: ts.parser
28+
}
29+
}
30+
},
31+
{
32+
ignores: [
33+
'build/',
34+
'.svelte-kit/',
35+
'.vercel/',
36+
'test-results/',
37+
'dist/',
38+
'.DS_Store',
39+
'src/lib/components/common/Analytics.svelte',
40+
'src/lib/i18n/'
41+
]
42+
},
43+
{
44+
rules: {
45+
'@typescript-eslint/no-explicit-any': 'off',
46+
'svelte/no-at-html-tags': 'off',
47+
'@typescript-eslint/no-unused-vars': 'off'
48+
}
49+
},
50+
{
51+
plugins: {
52+
'simple-import-sort': simpleImportSort
53+
},
54+
rules: {
55+
'simple-import-sort/imports': [
56+
'error',
57+
{
58+
groups: [
59+
// Packages `svelte` related packages come first.
60+
['^svelte', '^@?\\w'],
61+
// Packages `sveltekit` related packages come first.
62+
['^sveltekit', '^@?\\w'],
63+
// Packages that starts with $../.. come first.
64+
['^\\$', '^@?\\w'],
65+
// Side effect imports.
66+
['^\\u0000'],
67+
// Parent imports. Put `..` last.
68+
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
69+
// Other relative imports. Put same-folder imports and `.` last.
70+
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
71+
// Style imports.
72+
['^.+\\.?(css)$']
73+
]
74+
}
75+
],
76+
'simple-import-sort/exports': 'error'
77+
}
78+
}
79+
];

package.json

Lines changed: 42 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1818
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1919
"lint": "prettier --check . && eslint .",
20-
"format": "prettier --write .",
20+
"format": "prettier --write . && eslint . --fix",
2121
"prepare": "husky install && svelte-kit sync",
2222
"configure-husky": "npx husky install && npx husky add .husky/pre-commit \"npx --no-install lint-staged\"",
2323
"typesafe-i18n": "typesafe-i18n",
@@ -26,44 +26,47 @@
2626
"update-deps": "taze major -I"
2727
},
2828
"devDependencies": {
29-
"@csstools/postcss-media-minmax": "^1.1.4",
30-
"@fingerprintjs/fingerprintjs": "^4.2.2",
31-
"@playwright/test": "^1.42.1",
32-
"@sveltejs/adapter-auto": "^3.2.0",
33-
"@sveltejs/adapter-vercel": "^5.2.0",
34-
"@sveltejs/kit": "^2.5.5",
35-
"@sveltejs/vite-plugin-svelte": "^3.0.2",
29+
"@csstools/postcss-media-minmax": "^1.1.8",
30+
"@fingerprintjs/fingerprintjs": "^4.4.3",
31+
"@playwright/test": "^1.45.3",
32+
"@sveltejs/adapter-auto": "^3.2.2",
33+
"@sveltejs/adapter-vercel": "^5.4.1",
34+
"@sveltejs/kit": "^2.5.18",
35+
"@sveltejs/vite-plugin-svelte": "^3.1.1",
3636
"@tailwindcss/forms": "^0.5.7",
37-
"@tailwindcss/typography": "^0.5.12",
38-
"@types/eslint": "^8.56.6",
39-
"@types/gtag.js": "^0.0.19",
40-
"@typescript-eslint/eslint-plugin": "^7.4.0",
41-
"@typescript-eslint/parser": "^7.4.0",
37+
"@tailwindcss/typography": "^0.5.13",
38+
"@types/eslint": "^8.56.11",
39+
"@types/gtag.js": "^0.0.20",
40+
"@typescript-eslint/eslint-plugin": "^7.17.0",
41+
"@typescript-eslint/parser": "^7.17.0",
4242
"@zerodevx/svelte-img": "^2.1.0",
4343
"autoprefixer": "^10.4.19",
44-
"eslint": "^8.57.0",
44+
"eslint": "^9.8.0",
4545
"eslint-config-prettier": "^9.1.0",
46-
"eslint-plugin-svelte": "^2.35.1",
46+
"eslint-plugin-simple-import-sort": "^12.1.1",
47+
"eslint-plugin-svelte": "^2.43.0",
4748
"fontaine": "^0.5.0",
48-
"husky": "^9.0.11",
49-
"lint-staged": "^15.2.2",
49+
"globals": "^15.8.0",
50+
"husky": "^9.1.3",
51+
"lint-staged": "^15.2.7",
5052
"lottie-web": "^5.12.2",
5153
"npm-run-all": "^4.1.5",
52-
"postcss": "^8.4.38",
53-
"prettier": "^3.2.5",
54-
"prettier-plugin-svelte": "^3.2.2",
55-
"prettier-plugin-tailwindcss": "^0.5.13",
56-
"svelte": "^4.2.12",
57-
"svelte-check": "^3.6.8",
58-
"sveltekit-superforms": "^2.12.0",
59-
"tailwindcss": "^3.4.3",
60-
"taze": "^0.13.3",
61-
"tslib": "^2.6.2",
54+
"postcss": "^8.4.40",
55+
"prettier": "^3.3.3",
56+
"prettier-plugin-svelte": "^3.2.6",
57+
"prettier-plugin-tailwindcss": "^0.6.5",
58+
"svelte": "^4.2.18",
59+
"svelte-check": "^3.8.4",
60+
"sveltekit-superforms": "^2.16.1",
61+
"tailwindcss": "^3.4.7",
62+
"taze": "^0.16.1",
63+
"tslib": "^2.6.3",
6264
"typesafe-i18n": "^5.26.2",
63-
"typescript": "^5.4.3",
64-
"vite": "^5.2.7",
65-
"vitest": "^1.4.0",
66-
"zod": "^3.22.4"
65+
"typescript": "^5.5.4",
66+
"typescript-eslint": "^7.17.0",
67+
"vite": "^5.3.5",
68+
"vitest": "^2.0.4",
69+
"zod": "^3.23.8"
6770
},
6871
"lint-staged": {
6972
"**/*.{js,ts,jsx,json,svelte}": [
@@ -77,15 +80,15 @@
7780
}
7881
},
7982
"dependencies": {
80-
"@builder.io/partytown": "^0.10.1",
81-
"bits-ui": "^0.21.1",
82-
"clsx": "^2.1.0",
83+
"@builder.io/partytown": "^0.10.2",
84+
"bits-ui": "^0.21.12",
85+
"clsx": "^2.1.1",
8386
"dotenv": "^16.4.5",
84-
"formsnap": "^1.0.0",
85-
"lucide-svelte": "^0.363.0",
86-
"mode-watcher": "^0.3.0",
87-
"sharp": "^0.33.3",
88-
"tailwind-merge": "^2.2.2",
87+
"formsnap": "^1.0.1",
88+
"lucide-svelte": "^0.417.0",
89+
"mode-watcher": "^0.4.1",
90+
"sharp": "^0.33.4",
91+
"tailwind-merge": "^2.4.0",
8992
"tailwind-variants": "^0.2.1"
9093
}
9194
}

0 commit comments

Comments
 (0)