Skip to content

Commit

Permalink
chore: update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanherwijnen committed Apr 18, 2024
1 parent 393879e commit d749926
Show file tree
Hide file tree
Showing 10 changed files with 2,188 additions and 2,398 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-panthers-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@simsustech/quasar-components": patch
---

chore: update package.json
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"test:components": "cd packages/components && pnpm run test"
},
"devDependencies": {
"@changesets/cli": "^2.24.3",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^19.2.2",
"@commitlint/config-conventional": "^19.2.2",
"changesets": "^1.0.2",
"git-conventional-commits": "^2.1.1",
"git-conventional-commits": "^2.6.7",
"npm-run-all": "^4.1.5",
"simple-git-hooks": "^2.8.0"
"simple-git-hooks": "^2.11.1"
},
"simple-git-hooks": {
"pre-commit": "pnpm run lint && pnpm run format:check",
Expand Down
2 changes: 0 additions & 2 deletions packages/components/.eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions packages/components/.eslintrc.cjs

This file was deleted.

29 changes: 29 additions & 0 deletions packages/components/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import eslintConfigPrettier from 'eslint-config-prettier'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
import pluginVue from 'eslint-plugin-vue'
import typescriptEslint from 'typescript-eslint'
import vueParser from 'vue-eslint-parser'

export default typescriptEslint.config(
...typescriptEslint.configs.recommended,
...pluginVue.configs['flat/recommended'],

{
files: ['**/*.vue'],
languageOptions: {
parser: vueParser,
parserOptions: {
sourceType: 'module',
parser: {
ts: typescriptEslint.parser
}
}
}
},

/**
* end
*/
eslintConfigPrettier,
eslintPluginPrettierRecommended
)
7 changes: 5 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"build:vite-plugin": "rimraf tsconfig.build.plugin.tsbuildinfo && tsc -p tsconfig.build.plugin.json",
"generate:types": "vue-tsc -p tsconfig.types.json",
"build": "run-s build:plugin build:vite-plugin generate:types",
"lint": "eslint --ext .vue --ext .ts src",
"lint:fix": "eslint --ext .vue --ext .ts src --fix",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"format:check": "prettier --check .",
"format:write": "prettier --write .",
"test": "echo \"Error: no test specified\" && exit 0"
Expand All @@ -72,6 +72,7 @@
"@vue/server-renderer": "^3.4.23",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-prettier-vue": "^5.0.0",
"eslint-plugin-vue": "^9.25.0",
"glob": "^10.3.12",
Expand All @@ -80,9 +81,11 @@
"quasar": "^2.15.2",
"rimraf": "^5.0.5",
"typescript": "^5.4.5",
"typescript-eslint": "^7.7.0",
"unplugin-vue-components": "^0.26.0",
"vite": "^5.2.9",
"vue": "^3.4.23",
"vue-eslint-parser": "^9.4.2",
"vue-router": "^4.3.2",
"vue-tsc": "^2.0.13"
}
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/ui/flags/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @ts-nocheck
// @ts-expect-error vite only
import nl from 'nl.flag'
// @ts-expect-error vite only
import enUs from 'en-US.flag'
export { nl, enUs }
export { useLang, loadLang } from './lang/index.js'
3 changes: 1 addition & 2 deletions packages/components/src/ui/general/QLanguageSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { nl, enUs } from '../flags/index.js'
export interface Props {
modelValue: string
languageImports: Record<string, () => Promise<QuasarLanguage>>
languageImports: Record<string, () => Promise<{ default: QuasarLanguage }>>
}
const props = defineProps<Props>()
const $q = useQuasar()
Expand Down Expand Up @@ -75,7 +75,6 @@ watch(modelValue, (langIso: string) => {
props.languageImports[langIso]().then(
// langList[`../../../node_modules/quasar/lang/${langIso}.mjs`]().then(
(lang) => {
// @ts-ignore
$q.lang.set(lang.default)
}
)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/ui/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// @ts-nocheck
// @ts-expect-error vite only
import microsoft from 'microsoft.icon'
export { microsoft }
Loading

0 comments on commit d749926

Please sign in to comment.