diff --git a/.eslintrc.js b/.eslintrc.js index 799f1710..f19d1539 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,16 +4,17 @@ module.exports = { node: true, }, extends: [ - 'plugin:vue/vue3-recommended', + 'plugin:vue/vue3-essential', 'eslint:recommended', - '@vue/prettier', + 'plugin:prettier/recommended', ], parserOptions: { - parser: 'babel-eslint', + parser: '@babel/eslint-parser', }, rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'vue/multi-word-component-names': 'off', }, overrides: [ { diff --git a/jest.config.js b/jest.config.js index 9702ea33..2dac575d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,3 @@ module.exports = { preset: '@vue/cli-plugin-unit-jest', - transform: { - '^.+\\.vue$': 'vue-jest', - }, } diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 00000000..4aafc5f6 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "esnext", + "baseUrl": "./", + "moduleResolution": "node", + "paths": { + "@/*": [ + "src/*" + ] + }, + "lib": [ + "esnext", + "dom", + "dom.iterable", + "scripthost" + ] + } +} diff --git a/package.json b/package.json index 3673f2e5..1e74ca23 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/coreui-free-vue-admin-template", - "version": "4.0.1", + "version": "4.1.0", "description": "CoreUI Free Vue Admin Template", "bugs": { "url": "https://github.com/coreui/coreui-free-vue-admin-template/issues" @@ -19,39 +19,42 @@ "test:unit": "vue-cli-service test:unit" }, "config": { - "coreui_library_short_version": "4.0" + "coreui_library_short_version": "4.1" }, "dependencies": { "@coreui/chartjs": "^3.0.0", - "@coreui/coreui": "^4.0.5", + "@coreui/coreui": "^4.1.0", "@coreui/icons": "^2.1.0", "@coreui/icons-vue": "2.0.0", "@coreui/utils": "^1.3.1", - "@coreui/vue": "^4.0.1", + "@coreui/vue": "^4.1.0", "@coreui/vue-chartjs": "2.0.0", "core-js": "^3.19.0", - "vue": "^3.2.19", - "vue-router": "^4.0.0-0", - "vuex": "^4.0.0-0" + "vue": "^3.2.23", + "vue-router": "^4.0.12", + "vuex": "^4.0.2" }, "devDependencies": { - "@vue/cli-plugin-babel": "~4.5.14", - "@vue/cli-plugin-e2e-cypress": "~4.5.14", - "@vue/cli-plugin-eslint": "~4.5.14", - "@vue/cli-plugin-router": "~4.5.14", - "@vue/cli-plugin-unit-jest": "~4.5.14", - "@vue/cli-plugin-vuex": "~4.5.14", - "@vue/cli-service": "~4.5.14", - "@vue/compiler-sfc": "^3.2.20", - "@vue/eslint-config-prettier": "^6.0.0", + "@babel/core": "^7.12.16", + "@babel/eslint-parser": "^7.12.16", + "@vue/cli-plugin-babel": "~5.0.0-rc.1", + "@vue/cli-plugin-e2e-cypress": "~5.0.0-rc.1", + "@vue/cli-plugin-eslint": "~5.0.0-rc.1", + "@vue/cli-plugin-router": "~5.0.0-rc.1", + "@vue/cli-plugin-unit-jest": "~5.0.0-rc.1", + "@vue/cli-plugin-vuex": "~5.0.0-rc.1", + "@vue/cli-service": "~5.0.0-rc.1", "@vue/test-utils": "^2.0.0-0", - "babel-eslint": "^10.1.0", + "@vue/vue3-jest": "^27.0.0-alpha.1", + "babel-jest": "^27.0.6", + "cypress": "^8.7.0", "eslint": "^7.32.0", + "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-vue": "^7.20.0", + "eslint-plugin-vue": "^8.0.3", + "jest": "^27.0.5", "prettier": "^2.4.1", - "sass": "^1.43.3", - "sass-loader": "^10.2.0", - "vue-jest": "^5.0.0-0" + "sass": "^1.32.7", + "sass-loader": "^12.0.0" } } diff --git a/public/index.html b/public/index.html index 1cdac134..df559041 100644 --- a/public/index.html +++ b/public/index.html @@ -1,7 +1,7 @@