Skip to content

Commit

Permalink
Update to 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
digikid committed Jul 28, 2022
1 parent b051295 commit 4fc49c2
Show file tree
Hide file tree
Showing 12 changed files with 100 additions and 24 deletions.
26 changes: 24 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -12,6 +20,11 @@
"browser": true,
"es6": true
},
"globals": {
"defineProps": "readonly",
"defineEmits": "readonly",
"withDefaults": "readonly"
},
"settings": {
"import/resolver": {
"typescript": {}
Expand All @@ -20,6 +33,15 @@
"ignorePatterns": [
"*.config.js"
],
"overrides": [{
"files": [
"*.ts",
"*.vue"
],
"rules": {
"no-undef": "off"
}
}],
"rules": {
"import/prefer-default-export": "off"
}
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<img alt="Vite + Vue Project" src="https://github.com/digikid/vite-vue-project/raw/main/public/images/logo.svg" height="117" />
<img alt="Vite + Vue Project" src="https://github.com/digikid/vite-vue-project/raw/main/logo.svg" height="117" />
<h1>Vite + Vue Project</h1>
<p>Modern starter template for Vite using Vue and TypeScript</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion README.ru-RU.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<img alt="Vite + Vue Project" src="https://github.com/digikid/vite-vue-project/raw/main/public/images/logo.svg" height="117" />
<img alt="Vite + Vue Project" src="https://github.com/digikid/vite-vue-project/raw/main/logo.svg" height="117" />
<h1>Vite + Vue Project</h1>
<p>Стартовый шаблон для сборки приложения на Vue и TypeScript</p>
<p>
Expand Down
44 changes: 44 additions & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-vue-project",
"version": "1.0.0",
"version": "1.0.2",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
export interface IProps {
interface IProps {
title?: string;
}
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ export default {
theme: {
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
sans: [
'Inter var',
...defaultTheme.fontFamily.sans
],
},
},
}
},
plugins: [
forms,
Expand Down
17 changes: 4 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Node",
"useDefineForClassFields": true,
"strict": true,
"jsx": "preserve",
"sourceMap": true,
Expand All @@ -15,22 +15,16 @@
"ESNext",
"DOM"
],
"types": [
"@intlify/vite-plugin-vue-i18n/client"
],
"baseUrl": "src",
"paths": {
"@src/*": [
"*"
],
"@typings/*": [
"typings/*"
],
"@components/*": [
"components/*"
],
"@locale/*": [
"locale/*"
],
"@utils/*": [
"utils/*"
]
}
},
Expand All @@ -40,9 +34,6 @@
"src/**/*.tsx",
"src/**/*.vue"
],
"typeRoots": [
"src/global.d.ts"
],
"references": [{
"path": "tsconfig.node.json"
}]
Expand Down

0 comments on commit 4fc49c2

Please sign in to comment.