From 242226e7fc03915b58dba8838b354724e9b27d4b Mon Sep 17 00:00:00 2001 From: Kloon ImKloon Date: Tue, 12 Sep 2023 11:45:32 +0200 Subject: [PATCH] Improve chunking and added typecheck to lint --- frontend/.eslintrc.json | 5 +++-- frontend/package-lock.json | 4 ++-- frontend/package.json | 9 ++++----- frontend/vite.config.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json index 97345609..f1741f7d 100644 --- a/frontend/.eslintrc.json +++ b/frontend/.eslintrc.json @@ -12,8 +12,9 @@ "rules": { "vue/multi-word-component-names": "off", "vue/no-reserved-component-names": "warn", - "vue/no-mutating-props": "warn", - "no-undef": "off" + "vue/no-mutating-props": "warn" + // no-undef is already included in + // @vue/eslint-config-typescript }, "parserOptions": { "ecmaVersion": "latest", diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 508e0b42..bab0e714 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "filebrowser-frontend", - "version": "2.0.0", + "version": "3.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "filebrowser-frontend", - "version": "2.0.0", + "version": "3.0.0", "dependencies": { "@vue/eslint-config-typescript": "^11.0.3", "@vueuse/core": "^10.4.1", diff --git a/frontend/package.json b/frontend/package.json index 0b29813b..d133e16e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,15 +1,14 @@ { "name": "filebrowser-frontend", - "version": "2.0.0", + "version": "3.0.0", "private": true, "type": "module", "scripts": { "dev": "vite dev", - "serve": "vite serve", - "build": "vue-tsc -p ./tsconfig.json --noEmit && vite build", - "watch": "vite build --watch", + "build": "npm run typecheck && vite build", "clean": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitkeep' -exec rm -r {} +", - "lint": "eslint --ext .vue,.ts src/", + "typecheck": "vue-tsc -p ./tsconfig.json --noEmit", + "lint": "npm run typecheck && eslint --ext .vue,.ts src/", "lint:fix": "eslint --ext .vue,.ts --fix src/", "format": "prettier --write ." }, diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index c76f6158..ad26421a 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -9,7 +9,7 @@ import pluginRewriteAll from "vite-plugin-rewrite-all"; const plugins = [ vue(), VueI18nPlugin({ - include: [path.resolve(__dirname, "./src/i18n/**.json")], + include: [path.resolve(__dirname, "./src/i18n/**/*.json")], }), legacy({ // defaults already drop IE support