From 4fc49c2ffb88e386eac905b219dd5f0e51aa81af Mon Sep 17 00:00:00 2001 From: digikid Date: Fri, 29 Jul 2022 03:48:39 +0400 Subject: [PATCH] Update to 1.0.2 --- .eslintrc | 26 +++++++++++++++++-- CHANGELOG.md | 15 +++++++++++ README.md | 2 +- README.ru-RU.md | 2 +- logo.svg | 44 +++++++++++++++++++++++++++++++++ package-lock.json | 6 ++--- package.json | 3 ++- src/components/HelloWorld.vue | 2 +- src/{ => typings}/global.d.ts | 0 src/{ => typings}/vite-env.d.ts | 0 tailwind.config.js | 7 ++++-- tsconfig.json | 17 +++---------- 12 files changed, 100 insertions(+), 24 deletions(-) create mode 100644 logo.svg rename src/{ => typings}/global.d.ts (100%) rename src/{ => typings}/vite-env.d.ts (100%) diff --git a/.eslintrc b/.eslintrc index 6748938..561afb1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,8 +1,16 @@ { + "parser": "vue-eslint-parser", + "parserOptions": { + "project": "tsconfig.json", + "ecmaVersion": "latest", + "parser": "@typescript-eslint/parser" + }, "extends": [ - "plugin:vue/vue3-recommended", + "eslint:recommended", "@vue/typescript/recommended", - "airbnb-base" + "plugin:vue/vue3-recommended", + "airbnb-base", + "airbnb-typescript/base" ], "plugins": [ "@typescript-eslint" @@ -12,6 +20,11 @@ "browser": true, "es6": true }, + "globals": { + "defineProps": "readonly", + "defineEmits": "readonly", + "withDefaults": "readonly" + }, "settings": { "import/resolver": { "typescript": {} @@ -20,6 +33,15 @@ "ignorePatterns": [ "*.config.js" ], + "overrides": [{ + "files": [ + "*.ts", + "*.vue" + ], + "rules": { + "no-undef": "off" + } + }], "rules": { "import/prefer-default-export": "off" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bc87fc..ddef22e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Release Notes +[1.0.2]: https://github.com/digikid/vite-vue-project/releases/tag/1.0.2 + +## [1.0.2] - 2022-07-25 + +### Updates + +- All type definitions moved to `typings` folder +- Added path alias for `typings` +- Updated ESLint config for better TS linting + +### Bug Fixes + +- Fixed ESLint [no-undef error](https://github.com/typescript-eslint/typescript-eslint/blob/main/docs/linting/TROUBLESHOOTING.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors) in `.vue` files +- Removed unused path aliases from `tsconfig.json` + [1.0.1]: https://github.com/digikid/vite-vue-project/releases/tag/1.0.1 ## [1.0.1] - 2022-07-24 diff --git a/README.md b/README.md index df66f4f..c27b9c5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
- Vite + Vue Project + Vite + Vue Project

Vite + Vue Project

Modern starter template for Vite using Vue and TypeScript

diff --git a/README.ru-RU.md b/README.ru-RU.md index d6beae9..74fb7cf 100644 --- a/README.ru-RU.md +++ b/README.ru-RU.md @@ -1,5 +1,5 @@

- Vite + Vue Project + Vite + Vue Project

Vite + Vue Project

Стартовый шаблон для сборки приложения на Vue и TypeScript

diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..4f1c09d --- /dev/null +++ b/logo.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/package-lock.json b/package-lock.json index 2320448..4dbbac6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,12 @@ { "name": "vite-vue-project", - "version": "1.0.0", + "version": "1.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vite-vue-project", - "version": "1.0.0", - "license": "MIT", + "version": "1.0.2", "dependencies": { "vue": "^3.2.37" }, @@ -35,6 +34,7 @@ "typescript": "^4.6.4", "vite": "^3.0.0", "vite-tsconfig-paths": "^3.5.0", + "vue-eslint-parser": "^9.0.3", "vue-tsc": "^0.38.4" } }, diff --git a/package.json b/package.json index 68dbfe9..e45604e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vite-vue-project", - "version": "1.0.0", + "version": "1.0.2", "type": "module", "scripts": { "dev": "vite", @@ -34,6 +34,7 @@ "typescript": "^4.6.4", "vite": "^3.0.0", "vite-tsconfig-paths": "^3.5.0", + "vue-eslint-parser": "^9.0.3", "vue-tsc": "^0.38.4" } } diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue index 50ab032..1a97853 100644 --- a/src/components/HelloWorld.vue +++ b/src/components/HelloWorld.vue @@ -1,5 +1,5 @@