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": {
"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",

View File

@ -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",

View File

@ -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 ."
},

View File

@ -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