Skip to content

Commit

Permalink
Update deps (#13)
Browse files Browse the repository at this point in the history
* chore: update deps

* chore: improve layout

---------

Co-authored-by: Shamim <[email protected]>
  • Loading branch information
shamscorner and Shamim authored Jul 28, 2024
1 parent 19f8598 commit 5d1b73b
Show file tree
Hide file tree
Showing 68 changed files with 5,117 additions and 4,323 deletions.
14 changes: 0 additions & 14 deletions .eslintignore

This file was deleted.

36 changes: 0 additions & 36 deletions .eslintrc.cjs

This file was deleted.

10 changes: 5 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "weekly"
interval: 'weekly'
commit-message:
prefix: "npm"
prefix: 'npm'
groups:
all:
patterns:
- "*"
- '*'
79 changes: 79 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import js from '@eslint/js';
import prettier from 'eslint-config-prettier';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';
import ts from 'typescript-eslint';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser
}
}
},
{
ignores: [
'build/',
'.svelte-kit/',
'.vercel/',
'test-results/',
'dist/',
'.DS_Store',
'src/lib/components/common/Analytics.svelte',
'src/lib/i18n/'
]
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'svelte/no-at-html-tags': 'off',
'@typescript-eslint/no-unused-vars': 'off'
}
},
{
plugins: {
'simple-import-sort': simpleImportSort
},
rules: {
'simple-import-sort/imports': [
'error',
{
groups: [
// Packages `svelte` related packages come first.
['^svelte', '^@?\\w'],
// Packages `sveltekit` related packages come first.
['^sveltekit', '^@?\\w'],
// Packages that starts with $../.. come first.
['^\\$', '^@?\\w'],
// Side effect imports.
['^\\u0000'],
// Parent imports. Put `..` last.
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
// Other relative imports. Put same-folder imports and `.` last.
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
// Style imports.
['^.+\\.?(css)$']
]
}
],
'simple-import-sort/exports': 'error'
}
}
];
81 changes: 42 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"format": "prettier --write . && eslint . --fix",
"prepare": "husky install && svelte-kit sync",
"configure-husky": "npx husky install && npx husky add .husky/pre-commit \"npx --no-install lint-staged\"",
"typesafe-i18n": "typesafe-i18n",
Expand All @@ -26,44 +26,47 @@
"update-deps": "taze major -I"
},
"devDependencies": {
"@csstools/postcss-media-minmax": "^1.1.4",
"@fingerprintjs/fingerprintjs": "^4.2.2",
"@playwright/test": "^1.42.1",
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/adapter-vercel": "^5.2.0",
"@sveltejs/kit": "^2.5.5",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@csstools/postcss-media-minmax": "^1.1.8",
"@fingerprintjs/fingerprintjs": "^4.4.3",
"@playwright/test": "^1.45.3",
"@sveltejs/adapter-auto": "^3.2.2",
"@sveltejs/adapter-vercel": "^5.4.1",
"@sveltejs/kit": "^2.5.18",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.12",
"@types/eslint": "^8.56.6",
"@types/gtag.js": "^0.0.19",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@tailwindcss/typography": "^0.5.13",
"@types/eslint": "^8.56.11",
"@types/gtag.js": "^0.0.20",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@zerodevx/svelte-img": "^2.1.0",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-svelte": "^2.43.0",
"fontaine": "^0.5.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"globals": "^15.8.0",
"husky": "^9.1.3",
"lint-staged": "^15.2.7",
"lottie-web": "^5.12.2",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"prettier-plugin-tailwindcss": "^0.5.13",
"svelte": "^4.2.12",
"svelte-check": "^3.6.8",
"sveltekit-superforms": "^2.12.0",
"tailwindcss": "^3.4.3",
"taze": "^0.13.3",
"tslib": "^2.6.2",
"postcss": "^8.4.40",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-tailwindcss": "^0.6.5",
"svelte": "^4.2.18",
"svelte-check": "^3.8.4",
"sveltekit-superforms": "^2.16.1",
"tailwindcss": "^3.4.7",
"taze": "^0.16.1",
"tslib": "^2.6.3",
"typesafe-i18n": "^5.26.2",
"typescript": "^5.4.3",
"vite": "^5.2.7",
"vitest": "^1.4.0",
"zod": "^3.22.4"
"typescript": "^5.5.4",
"typescript-eslint": "^7.17.0",
"vite": "^5.3.5",
"vitest": "^2.0.4",
"zod": "^3.23.8"
},
"lint-staged": {
"**/*.{js,ts,jsx,json,svelte}": [
Expand All @@ -77,15 +80,15 @@
}
},
"dependencies": {
"@builder.io/partytown": "^0.10.1",
"bits-ui": "^0.21.1",
"clsx": "^2.1.0",
"@builder.io/partytown": "^0.10.2",
"bits-ui": "^0.21.12",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
"formsnap": "^1.0.0",
"lucide-svelte": "^0.363.0",
"mode-watcher": "^0.3.0",
"sharp": "^0.33.3",
"tailwind-merge": "^2.2.2",
"formsnap": "^1.0.1",
"lucide-svelte": "^0.417.0",
"mode-watcher": "^0.4.1",
"sharp": "^0.33.4",
"tailwind-merge": "^2.4.0",
"tailwind-variants": "^0.2.1"
}
}
Loading

0 comments on commit 5d1b73b

Please sign in to comment.