Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunoru committed Sep 5, 2024
1 parent a13f881 commit 29dd559
Show file tree
Hide file tree
Showing 9 changed files with 1,550 additions and 1,042 deletions.
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

10 changes: 5 additions & 5 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"build": "tsup src/index.ts --minify"
},
"dependencies": {
"discordeno": "^18.0.1",
"discordeno": "19.0.0-next.faaa8af",
"dotenv": "^16.4.5",
"hono": "^4.2.2"
"hono": "^4.5.11"
},
"devDependencies": {
"tsup": "^8.0.2",
"tsx": "^4.7.2",
"typescript": "^5.4.4"
"tsup": "^8.2.4",
"tsx": "^4.19.0",
"typescript": "^5.5.4"
}
}
90 changes: 90 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import vue from 'eslint-plugin-vue'
import globals from 'globals'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default [
{
ignores: [
'**/dist/',
'**/src-capacitor/',
'**/src-cordova/',
'**/.quasar/',
'**/node_modules/',
'**/eslint.config.mjs',
'**/src-ssr/',
'frontend/public/deps/',
],
},
...compat.extends('plugin:@typescript-eslint/recommended', 'plugin:vue/vue3-essential', 'prettier'),
{
plugins: {
'@typescript-eslint': typescriptEslint,
vue,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
...vue.environments['setup-compiler-macros']['setup-compiler-macros'],
ga: 'readonly',
cordova: 'readonly',
__statics: 'readonly',
__QUASAR_SSR__: 'readonly',
__QUASAR_SSR_SERVER__: 'readonly',
__QUASAR_SSR_CLIENT__: 'readonly',
__QUASAR_SSR_PWA__: 'readonly',
process: 'readonly',
Capacitor: 'readonly',
chrome: 'readonly',
},

ecmaVersion: 5,
sourceType: 'commonjs',

parserOptions: {
parser: '/Users/si/donotbackup/pro/vgc/node_modules/@typescript-eslint/parser/dist/index.js',
extraFileExtensions: ['.vue'],
},
},

rules: {
'prefer-promise-reject-errors': 'off',

quotes: [
'warn',
'single',
{
avoidEscape: true,
},
],

'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-var-requires': 'off',
'no-unused-vars': 'off',
'no-debugger': 'off',

'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'all',
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
},
]
42 changes: 21 additions & 21 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,31 @@
"build": "quasar build -m pwa"
},
"dependencies": {
"@pkmn/img": "^0.2.26",
"@quasar/extras": "^1.16.11",
"@types/jquery": "^3.5.29",
"dexie": "^4.0.1",
"pinia": "^2.1.7",
"quasar": "^2.15.2",
"@pkmn/img": "^0.2.32",
"@quasar/extras": "^1.16.12",
"@types/jquery": "^3.5.30",
"dexie": "^4.0.8",
"pinia": "^2.2.2",
"quasar": "^2.16.10",
"vgc-tools": "workspace:^",
"vue": "^3.4.21",
"vue-i18n": "^9.11.0",
"vue-router": "^4.3.0"
"vue": "^3.5.1",
"vue-i18n": "^9.14.0",
"vue-router": "^4.4.3"
},
"devDependencies": {
"@intlify/vite-plugin-vue-i18n": "^7.0.0",
"@quasar/app-vite": "^1.8.0",
"@types/node": "^20.12.5",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"typescript": "^5.4.4",
"workbox-build": "^7.0.0",
"workbox-cacheable-response": "^7.0.0",
"workbox-core": "^7.0.0",
"workbox-expiration": "^7.0.0",
"workbox-precaching": "^7.0.0",
"workbox-routing": "^7.0.0",
"workbox-strategies": "^7.0.0"
"@quasar/app-vite": "^1.9.5",
"@types/node": "^20.16.5",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.45",
"typescript": "^5.5.4",
"workbox-build": "^7.1.1",
"workbox-cacheable-response": "^7.1.0",
"workbox-core": "^7.1.0",
"workbox-expiration": "^7.1.0",
"workbox-precaching": "^7.1.0",
"workbox-routing": "^7.1.0",
"workbox-strategies": "^7.1.0"
},
"engines": {
"node": "^20 || ^18",
Expand Down
20 changes: 10 additions & 10 deletions frontend/src/boot/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { boot } from 'quasar/wrappers';
import { createI18n } from 'vue-i18n';
import { boot } from 'quasar/wrappers'
import { createI18n } from 'vue-i18n'

import messages from 'src/i18n';
import messages from 'src/i18n'

export type MessageLanguages = keyof typeof messages;
export type MessageLanguages = keyof typeof messages
// Type-define 'en-US' as the master schema for the resource
export type MessageSchema = typeof messages['en-US'];
export type MessageSchema = (typeof messages)['en-US']

// See https://vue-i18n.intlify.dev/guide/advanced/typescript.html#global-resource-schema-type-definition
/* eslint-disable @typescript-eslint/no-empty-interface */
/* eslint-disable @typescript-eslint/no-empty-object-type */
declare module 'vue-i18n' {
// define the locale messages schema
export interface DefineLocaleMessage extends MessageSchema {}
Expand All @@ -19,15 +19,15 @@ declare module 'vue-i18n' {
// define the number format schema
export interface DefineNumberFormat {}
}
/* eslint-enable @typescript-eslint/no-empty-interface */
/* eslint-enable @typescript-eslint/no-empty-object-type */

export default boot(({ app }) => {
const i18n = createI18n({
locale: 'en-US',
legacy: false,
messages,
});
})

// Set i18n instance on app
app.use(i18n);
});
app.use(i18n)
})
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"build": "yarn workspace vgc-tools build && yarn workspace vgc build"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"eslint": "^8.57.0",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-vue": "^9.24.0",
"prettier": "^3.2.5"
"eslint-plugin-vue": "^9.28.0",
"prettier": "^3.3.3"
}
}
13 changes: 7 additions & 6 deletions vgc-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
"dev": "tsc -w"
},
"dependencies": {
"@pkmn/data": "^0.9.2",
"@pkmn/dex": "^0.9.2",
"@pkmn/mods": "^0.9.2",
"@pkmn/protocol": "^0.6.24",
"@pkmn/sim": "^0.9.2",
"@pkmn/data": "^0.9.13",
"@pkmn/dex": "^0.9.13",
"@pkmn/mods": "^0.9.13",
"@pkmn/protocol": "^0.6.26",
"@pkmn/sim": "^0.9.13",
"@pkmn/types": "^4.0.0"
},
"devDependencies": {
"typescript": "^5.4.4"
"@types/node": "^20.16.5",
"typescript": "^5.5.4"
}
}
2 changes: 1 addition & 1 deletion vgc-tools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"outDir": "dist",
"typeRoots": ["node_modules/@types"]
"types": ["node"]
},
"include": ["src"]
}
Loading

0 comments on commit 29dd559

Please sign in to comment.