Skip to content

Commit

Permalink
Update dependencies (#667)
Browse files Browse the repository at this point in the history
* Update dependencies

* Fix svelte-check error

* Fix eslint changes

* Remove unused import

* Fix worker.plugins warning
  • Loading branch information
chrisvire authored Aug 13, 2024
1 parent bb15e5f commit ddc22d1
Show file tree
Hide file tree
Showing 9 changed files with 2,686 additions and 3,025 deletions.
18 changes: 0 additions & 18 deletions .eslintignore

This file was deleted.

4 changes: 2 additions & 2 deletions convert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const suppliedDataDir = process.argv.find((arg) => arg.includes('--data-dir'));
const dataDir = suppliedDataDir
? suppliedDataDir.split('=')[1]
: process.argv.includes('--examples')
? 'example_data'
: 'data';
? 'example_data'
: 'data';

const watchTimeoutArg = process.argv.find((arg) => arg.includes('--watch-timeout'));
const watchTimeout = watchTimeoutArg ? parseInt(watchTimeoutArg.split('=')[1]) : 100;
Expand Down
22 changes: 22 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
export default [
{
ignores: [
'.DS_Store',
'node_modules',
'build',
'.svelte-kit',
'package',
'.env',
'.env.*',
'!env.example',
'data',
'src/config.js',
'static',
'example_data',
'test_data',
'pnpm-lock.yaml',
'package-lock.json',
'yarn.lock'
]
}
];
5,622 changes: 2,640 additions & 2,982 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"preview": "vite preview --host",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
"lint": "prettier --check . && eslint .",
"eslint": "eslint .",
"format": "prettier --write --plugin-search-dir=. .",
"format": "prettier --write .",
"convert": "ts-node convert/index.ts",
"convert:watch": "ts-node convert/index.ts --watch",
"convert:examples": "ts-node convert/index.ts --examples",
Expand All @@ -27,43 +27,43 @@
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
"@sveltejs/adapter-static": "^2",
"@sveltejs/kit": "^1",
"@sveltejs/adapter-static": "^3",
"@sveltejs/kit": "^2",
"@tailwindcss/typography": "^0.5.2",
"@types/jsdom": "^21",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^6",
"@typescript-eslint/parser": "^6",
"@vitest/ui": "^1.2.1",
"@types/node": "^22",
"@typescript-eslint/eslint-plugin": "^8",
"@typescript-eslint/parser": "^8",
"@vitest/ui": "^2",
"autoprefixer": "^10.4.7",
"concurrently": "^8",
"daisyui": "^4",
"eslint": "^8.44.0",
"eslint": "^9",
"eslint-config-prettier": "^9",
"eslint-plugin-prettier": "^5",
"eslint-plugin-svelte": "^2",
"fflate": "^0.8",
"firebase": "^10.12.2",
"idb": "^7.1.1",
"jsdom": "^22",
"idb": "^8",
"jsdom": "^24",
"postcss": "^8.4.14",
"prettier": "^3",
"prettier-plugin-svelte": "^3",
"proskomma-core": "0.10.9",
"proskomma-json-tools": "^0.8.4",
"proskomma-tools": "^0.0.5",
"rimraf": "^5",
"rimraf": "^6",
"svelte": "^4",
"svelte-check": "^3",
"svelte-eslint-parser": "^0.33",
"svelte-eslint-parser": "^0.41",
"svelte-french-toast": "^1.0.3",
"svelte-gestures": "^1.4.1",
"svelte-preprocess": "^5",
"tailwindcss": "^3.3",
"svelte-gestures": "^5",
"svelte-preprocess": "^6",
"tailwindcss": "^3.4",
"ts-node": "^10.8.1",
"typescript": "^5",
"vite": "^4",
"vitest": "^1.0.0"
"vite": "^5",
"vitest": "^2"
},
"volta": {
"node": "20.9.0"
Expand Down
1 change: 0 additions & 1 deletion src/lib/data/history.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { openDB, type DBSchema } from 'idb';
import { logScreenView } from '$lib/data/analytics';

export interface HistoryItem {
date: number;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/data/stores/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ export const userPreferenceSettings = ((): Array<App.UserPreferenceSetting> => {
}

const hasAudioSourceWitbDownload =
Object.keys(config.audio?.sources || []).filter(
(key) => config.audio.sources[key].accessMethods?.includes('download')
Object.keys(config.audio?.sources || []).filter((key) =>
config.audio.sources[key].accessMethods?.includes('download')
).length > 0;
if (config.mainFeatures['settings-audio-download-mode'] && hasAudioSourceWitbDownload) {
settings.push({
Expand Down
2 changes: 1 addition & 1 deletion src/lib/scripts/parsePhrase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const char_is_numeric = (c: string) => {
return /^\d$/.test(c);
};
const char_is_letter = (c: string) => {
return RegExp(/^\p{L}/, 'u').test(c);
return /^\p{L}/u.test(c);
};
const char_is_number_separator = (text: string, pos: number) => {
let isNumberSeparator = false;
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const config = {
plugins: [sveltekit()],
worker: {
format: 'es',
plugins: []
plugins: () => []
},
resolve: {
alias: {
Expand Down

0 comments on commit ddc22d1

Please sign in to comment.