diff --git a/package-lock.json b/package-lock.json index 8a0e470a5..70d44bcda 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,6 +28,7 @@ "cypress": "^12.2.0", "eslint": "^8.30.0", "eslint-config-prettier": "^8.5.0", + "eslint-plugin-cypress": "^2.12.1", "eslint-plugin-vue": "^9.8.0", "postcss": "^8.4.20", "prettier": "^2.8.1", @@ -3175,6 +3176,27 @@ "eslint": ">=7.0.0" } }, + "node_modules/eslint-plugin-cypress": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.12.1.tgz", + "integrity": "sha512-c2W/uPADl5kospNDihgiLc7n87t5XhUbFDoTl6CfVkmG+kDAb5Ux10V9PoLPu9N+r7znpc+iQlcmAqT1A/89HA==", + "dev": true, + "dependencies": { + "globals": "^11.12.0" + }, + "peerDependencies": { + "eslint": ">= 3.2.1" + } + }, + "node_modules/eslint-plugin-cypress/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/eslint-plugin-vue": { "version": "9.8.0", "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.8.0.tgz", @@ -9743,6 +9765,23 @@ "dev": true, "requires": {} }, + "eslint-plugin-cypress": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.12.1.tgz", + "integrity": "sha512-c2W/uPADl5kospNDihgiLc7n87t5XhUbFDoTl6CfVkmG+kDAb5Ux10V9PoLPu9N+r7znpc+iQlcmAqT1A/89HA==", + "dev": true, + "requires": { + "globals": "^11.12.0" + }, + "dependencies": { + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + } + } + }, "eslint-plugin-vue": { "version": "9.8.0", "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.8.0.tgz", diff --git a/package.json b/package.json index d04ba533a..8184115fe 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "cypress": "^12.2.0", "eslint": "^8.30.0", "eslint-config-prettier": "^8.5.0", + "eslint-plugin-cypress": "^2.12.1", "eslint-plugin-vue": "^9.8.0", "postcss": "^8.4.20", "prettier": "^2.8.1", diff --git a/quasar.config.js b/quasar.config.js index ccee33f10..47204c299 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -71,7 +71,14 @@ module.exports = configure(function (/* ctx */) { // polyfillModulePreload: true, // distDir - // extendViteConf (viteConf) {}, + extendViteConf(viteConf) { + // FIXME: Delete deprecated property polyfillModulePreload + // that is set by Quasar by default + delete viteConf.build.polyfillModulePreload; + viteConf.build.modulePreload = { + polyfill: false, + }; + }, // viteVuePluginOptions: {}, alias: { @@ -98,7 +105,6 @@ module.exports = configure(function (/* ctx */) { server: { type: 'http', }, - port: 8080, proxy: { '/api': { target: 'http://0.0.0.0:3000',