Skip to content

Commit

Permalink
Merge pull request #8 from TessavWalstijn/develop
Browse files Browse the repository at this point in the history
Release v1.0.1
  • Loading branch information
TessavWalstijn authored Jul 24, 2024
2 parents 5f43d66 + bfaeedc commit 324afed
Show file tree
Hide file tree
Showing 12 changed files with 1,128 additions and 1,314 deletions.
52 changes: 0 additions & 52 deletions .eslintrc

This file was deleted.

8 changes: 1 addition & 7 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"semi": false,
"singleQuote": true,
"arrowParens": "always",
"bracketSameLine": true,
"tabWidth": 2,
"useTabs": false,
"printWidth": 80,
"trailingComma": "all"
"singleQuote": true
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"rvest.vs-code-prettier-eslint",
"squeeble.mint-it",
"squeeble.mint-it"
]
}
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- Following https://changelog.md/ -->

# Vue3 TypeScript Template Changelog

## Release [v1.0.1](https://github.com/TessavWalstijn/vue3-ts.template/releases/tag/v1.0.1) - 2024-07-24

### Added

- Simplified Prettier config

### Changed

- [ESLint v9.0.0](https://eslint.org/blog/2024/04/eslint-v9.0.0-released/)

### Removed

- ESLint rule "@typescript-eslint/no-explicit-any"

### Security

- Updated packages

## Release [v1.0.0](https://github.com/TessavWalstijn/vue3-ts.template/releases/tag/v1.0.0) - 2023-12-16

First release

### Added

- Fully ESM
- Fully TypeScript
- SCSS included
- Linting ready with ESLint and Prettier

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# vue3-ts.template
Template for Vue3, TS, ESLint + Prettier

Template for Vue3, TS, ESLint + Prettier

> NOTE: This project is fully ESM
Expand All @@ -22,11 +23,10 @@ nvm install lts/hydrogen
nvm use lts/hydrogen
```

Make sure you have the modern yarn installed
Make sure you have the modern yarn enabled

```bash
corepack enable
yarn set version 4.0.2
```

Installing packageges used by this project:
Expand Down
63 changes: 63 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import vue from 'eslint-plugin-vue'
import globals from 'globals'
import parser from 'vue-eslint-parser'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default [
...compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:vue/vue3-essential',
'plugin:vue/vue3-recommended',
'@vue/eslint-config-typescript',
'prettier',
),
{
plugins: {
'@typescript-eslint': typescriptEslint,
vue,
},
languageOptions: {
globals: {
...Object.fromEntries(
Object.entries(globals.browser).map(([key]) => [key, 'off']),
),
},
parser: parser,
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'never'],
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/indent': 0,
'vue/no-v-html': 0,
'vue/no-template-shadow': 0,
'vue/attribute-hyphenation': [
'warn',
'never',
{
ignore: ['custom-prop'],
},
],
},
},
]
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
37 changes: 20 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,36 @@
"author": "TessavWalstijn <[email protected]>",
"license": "GPL-3.0",
"type": "module",
"packageManager": "yarn@4.0.2",
"packageManager": "yarn@4.3.1",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview",
"lint": "eslint \"src/**/*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"lint": "prettier --check . && eslint \"src/**/*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"lint:fix": "yarn lint:format && yarn lint:es-fix",
"lint:es-fix": "eslint --fix \"src/**/*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}\"",
"lint:format": "prettier --ignore-path .gitignore --write \"src/**/*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}\""
},
"dependencies": {
"typescript": "5.1.6",
"vue": "^3.3.4",
"vue-tsc": "^1.8.10"
"typescript": "5.5.4",
"vue": "^3.4.33",
"vue-tsc": "^2.0.28"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"@vitejs/plugin-vue": "^4.3.4",
"@vue/eslint-config-typescript": "^11.0.3",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-vue": "^9.17.0",
"prettier": "^3.0.3",
"sass": "^1.66.1",
"vite": "^4.4.9",
"vue-tsc-eslint-hook": "^1.8.10"
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.7.0",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@vitejs/plugin-vue": "^5.1.0",
"@vue/eslint-config-typescript": "^13.0.0",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.27.0",
"globals": "^15.8.0",
"prettier": "^3.3.3",
"sass": "^1.77.8",
"vite": "^5.3.4",
"vue-tsc-eslint-hook": "^1.8.27"
}
}
2 changes: 1 addition & 1 deletion src/components/HelloWorld/HelloWorld.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.read-the-docs {
color: #888;
}
}
1 change: 0 additions & 1 deletion src/types/.gitkeep

This file was deleted.

6 changes: 6 additions & 0 deletions src/types/todo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* This type can be used as an any.
* Due to being it an unknown you need stricter typechecking and casting
* That can make it easier to identify the type
*/
export type tTODO = unknown
Loading

0 comments on commit 324afed

Please sign in to comment.