Skip to content

Commit

Permalink
bumped packages including vue
Browse files Browse the repository at this point in the history
  • Loading branch information
buffet-time committed Sep 25, 2024
1 parent 9963345 commit 1192833
Show file tree
Hide file tree
Showing 14 changed files with 1,078 additions and 899 deletions.
43 changes: 0 additions & 43 deletions .eslintrc.json

This file was deleted.

32 changes: 21 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,37 @@ Tooling: [Vite](https://vitejs.dev/), [ESLint](https://eslint.org/), [Prettier](

## To run locally

- Clone repo
### Clone repo

$ git clone https://github.com/RazorSh4rk/random-word-api.git
```bash
git clone https://github.com/RazorSh4rk/random-word-api.git
```

- [install PNPM](https://pnpm.io/installation)
### [install PNPM](https://pnpm.io/installation)

$ npx pnpm add -g pnpm
```npm
npx pnpm add -g pnpm
```

- Install packages
### Install packages

$ pnpm install
```bash
pnpm install
```

- Setup Husky
### Setup Husky

$ pnpm prepare:husky
```bash
pnpm prepare:husky
```

- Serve the application
### Serve the application

$ pnpm serve
```bash
pnpm serve
```

- open a browser and navigate to <http://localhost:8086/>
### open a browser and navigate to <http://localhost:5137/>

## Other

Expand Down
71 changes: 71 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import vue from 'eslint-plugin-vue'
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import prettier from 'eslint-plugin-prettier'
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 [
{
ignores: ['src/assets/*', 'dist/*', '**/acronymWords.json', '**/index.html']
},
...compat.extends(
'prettier',
'eslint:recommended',
'plugin:vue/vue3-recommended',
'@vue/typescript/recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked'
),
{
plugins: {
vue,
'@typescript-eslint': typescriptEslint,
prettier
},

languageOptions: {
globals: {
...globals.browser
},

parser: parser,
ecmaVersion: 'latest',
sourceType: 'module',

parserOptions: {
parser: '@typescript-eslint/parser',
project: true
}
},

rules: {
'no-fallthrough': 'off',
'prefer-const': 'error',
'no-mixed-spaces-and-tabs': 'off',
'prettier/prettier': 'error',
'vue/max-attributes-per-line': 'off',
'vue/html-indent': 'off',
'vue/html-self-closing': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-extra-semi': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off'
}
}
]
44 changes: 24 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://danielTurcich.com"
},
"engines": {
"pnpm": ">=8.1.0"
"pnpm": ">=9.10.0"
},
"engineStrict": true,
"scripts": {
Expand All @@ -30,29 +30,33 @@
},
"dependencies": {
"dialog-polyfill": "^0.5.6",
"pinia": "^2.1.7",
"vue": "^3.4.24",
"vue-router": "^4.3.2"
"pinia": "^2.2.2",
"vue": "^3.5.8",
"vue-router": "^4.4.5"
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.11.1",
"@nabla/vite-plugin-eslint": "^2.0.4",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@vitejs/plugin-vue": "^5.0.4",
"@types/lodash.debounce": "^4.0.9",
"@types/node": "^22.7.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/eslint-config-typescript": "^13.0.0",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-vue": "^9.25.0",
"husky": "^9.0.11",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5",
"vite": "^5.2.10",
"vue-eslint-parser": "^9.4.2",
"vue-tsc": "^2.0.14"
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.28.0",
"globals": "^15.9.0",
"husky": "^9.1.6",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.2",
"vite": "^5.4.7",
"vue-eslint-parser": "^9.4.3",
"vue-tsc": "^2.1.6"
}
}
Loading

0 comments on commit 1192833

Please sign in to comment.