Improve chunking and added typecheck to lint

This commit is contained in:
Kloon ImKloon 2023-09-12 11:45:32 +02:00
parent a9cb85d060
commit 242226e7fc
No known key found for this signature in database
GPG Key ID: CCF1C86A995C5B6A
4 changed files with 10 additions and 10 deletions

View File

@ -12,8 +12,9 @@
"rules": { "rules": {
"vue/multi-word-component-names": "off", "vue/multi-word-component-names": "off",
"vue/no-reserved-component-names": "warn", "vue/no-reserved-component-names": "warn",
"vue/no-mutating-props": "warn", "vue/no-mutating-props": "warn"
"no-undef": "off" // no-undef is already included in
// @vue/eslint-config-typescript
}, },
"parserOptions": { "parserOptions": {
"ecmaVersion": "latest", "ecmaVersion": "latest",

View File

@ -1,12 +1,12 @@
{ {
"name": "filebrowser-frontend", "name": "filebrowser-frontend",
"version": "2.0.0", "version": "3.0.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "filebrowser-frontend", "name": "filebrowser-frontend",
"version": "2.0.0", "version": "3.0.0",
"dependencies": { "dependencies": {
"@vue/eslint-config-typescript": "^11.0.3", "@vue/eslint-config-typescript": "^11.0.3",
"@vueuse/core": "^10.4.1", "@vueuse/core": "^10.4.1",

View File

@ -1,15 +1,14 @@
{ {
"name": "filebrowser-frontend", "name": "filebrowser-frontend",
"version": "2.0.0", "version": "3.0.0",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
"serve": "vite serve", "build": "npm run typecheck && vite build",
"build": "vue-tsc -p ./tsconfig.json --noEmit && vite build",
"watch": "vite build --watch",
"clean": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitkeep' -exec rm -r {} +", "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/", "lint:fix": "eslint --ext .vue,.ts --fix src/",
"format": "prettier --write ." "format": "prettier --write ."
}, },

View File

@ -9,7 +9,7 @@ import pluginRewriteAll from "vite-plugin-rewrite-all";
const plugins = [ const plugins = [
vue(), vue(),
VueI18nPlugin({ VueI18nPlugin({
include: [path.resolve(__dirname, "./src/i18n/**.json")], include: [path.resolve(__dirname, "./src/i18n/**/*.json")],
}), }),
legacy({ legacy({
// defaults already drop IE support // defaults already drop IE support