Skip to content

Commit

Permalink
chore(deps-dev): bump @nuxt/eslint from 0.3.0-alpha.0 to 0.3.0-beta.7 (
Browse files Browse the repository at this point in the history
…#37)

* chore(deps-dev): bump @nuxt/eslint from 0.3.0-alpha.0 to 0.3.0-beta.7

Bumps [@nuxt/eslint](https://github.com/nuxt/eslint/tree/HEAD/packages/module) from 0.3.0-alpha.0 to 0.3.0-beta.7.
- [Release notes](https://github.com/nuxt/eslint/releases)
- [Commits](https://github.com/nuxt/eslint/commits/v0.3.0-beta.7/packages/module)

---
updated-dependencies:
- dependency-name: "@nuxt/eslint"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: 🔥 bump eslint

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Touch <chantouchsek.cs83@gmail.com>
  • Loading branch information
dependabot[bot] and chantouchsek authored Apr 4, 2024
1 parent 69a7d93 commit 0532890
Show file tree
Hide file tree
Showing 16 changed files with 1,287 additions and 1,365 deletions.
99 changes: 0 additions & 99 deletions .prettierignore

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

12 changes: 8 additions & 4 deletions components/app/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const toggleDark = useToggle<true, false | null>(isDark)
const $auth = useAuth()
const breadcrumbs = computed(() =>
route.matched
.filter((item) => item.meta?.title && item.meta?.breadcrumb !== 'hidden')
.map((r) => ({
.filter(item => item.meta?.title && item.meta?.breadcrumb !== 'hidden')
.map(r => ({
title: r.meta.title!,
disabled: r.meta?.breadcrumb === false || r.path === route.path || false,
to: r.path,
Expand Down Expand Up @@ -61,7 +61,9 @@ function onChanged(dark: boolean) {
</VListItem>
<VListItem>
<template #prepend>
<VIcon start>mdi-translate</VIcon>
<VIcon start>
mdi-translate
</VIcon>
</template>
<VListItemTitle>
{{ $t('common.title.switchLang') }}
Expand All @@ -70,7 +72,9 @@ function onChanged(dark: boolean) {
<VDivider thickness="1" />
<VListItem @click="$auth.logout()">
<template #prepend>
<VIcon start>mdi-logout-variant</VIcon>
<VIcon start>
mdi-logout-variant
</VIcon>
</template>
<VListItemTitle>
{{ $t('auth.logout') }}
Expand Down
2 changes: 1 addition & 1 deletion components/app/AppDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const drawer = computed({
})
const rail = computed(() => !drawerState.value && !mobile.value)
const routes = router.getRoutes().filter((r) => r.path.lastIndexOf('/') === 0)
const routes = router.getRoutes().filter(r => r.path.lastIndexOf('/') === 0)
routes.sort((a, b) => (Number(a.meta?.drawerIndex) ?? 99) - (Number(b.meta?.drawerIndex) ?? 98))
nextTick(() => {
Expand Down
2 changes: 1 addition & 1 deletion components/app/AppDrawerItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const props = withDefaults(
)
const children = computed(() =>
props.item.children
?.filter((child) => child.meta?.icon)
?.filter(child => child.meta?.icon)
.sort((a, b) => (Number(a.meta?.drawerIndex) ?? 99) - (Number(b.meta?.drawerIndex) ?? 98)),
)
const isItem = computed(() => !props.item.children || (children.value?.length ?? 0) <= 1)
Expand Down
12 changes: 0 additions & 12 deletions eslint.config.js

This file was deleted.

11 changes: 11 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import withNuxt from './.nuxt/eslint.config.mjs'

export default withNuxt({
rules: {
'vue/max-attributes-per-line': 'off',
},
}).override('nuxt/stylistic', {
rules: {
'@stylistic/quotes': ['error', 'single', { allowTemplateLiterals: true }],
},
})
8 changes: 6 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default defineNuxtConfig({
},
http: {
credentials: 'include',
debug: process.env.NODE_ENV === 'development',
// debug: process.env.NODE_ENV === 'development',
},
veeValidate: {
autoImports: true,
Expand All @@ -127,8 +127,12 @@ export default defineNuxtConfig({
},
},
eslint: {
checker: true,
config: {
// stylistic: true,
stylistic: true,
typescript: {
strict: true,
},
},
},
})
17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chantouchsek/amazing-admin",
"private": true,
"packageManager": "pnpm@8.15.5",
"packageManager": "pnpm@8.15.6",
"type": "module",
"engines": {
"node": ">=18",
Expand All @@ -14,26 +14,24 @@
"dev": "nuxt dev",
"generate": "nuxt generate",
"postinstall": "nuxt prepare",
"lint": "pnpm lint:js && pnpm lint:style && pnpm lint:prettier",
"lint:fix": "prettier --write --list-different . && pnpm lint:js --fix && pnpm lint:style --fix",
"lint": "pnpm lint:js && pnpm lint:style",
"lint:fix": "pnpm lint:js --fix && pnpm lint:style --fix",
"lint:js": "eslint . --cache",
"lint:prettier": "prettier --check --ignore-unknown .",
"lint:style": "stylelint '**/*.{css,scss,sass,vue}' --ignore-path .gitignore",
"prepare": "husky",
"preview": "nuxt preview"
},
"lint-staged": {
"*.{js,ts,vue}": "eslint --cache",
"*.{css,scss,sass,vue}": "stylelint",
"*.**": "prettier --check --ignore-unknown"
"*.{css,scss,sass,vue}": "stylelint"
},
"devDependencies": {
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@date-io/dayjs": "^3.0.0",
"@nuxt-alt/auth": "^3.1.6",
"@nuxt-alt/http": "^1.7.10",
"@nuxt/eslint": "0.3.0-alpha.0",
"@nuxt/eslint": "0.3.0-beta.9",
"@nuxt/fonts": "^0.6.1",
"@nuxtjs/color-mode": "^3.3.3",
"@nuxtjs/i18n": "^8.3.0",
Expand All @@ -52,17 +50,16 @@
"lint-staged": "^15.2.2",
"nuxt": "^3.11.1",
"pinia": "^2.1.7",
"prettier": "^3.2.5",
"sass": "^1.72.0",
"sass": "^1.74.1",
"sass-loader": "^14.1.1",
"stylelint": "^16.3.1",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard": "^36.0.0",
"typescript": "^5.4.3",
"unocss": "^0.58.9",
"unocss-preset-useful": "^0.4.1",
"vee-validate": "^4.12.6",
"vite-plugin-eslint2": "^4.4.0",
"vue": "^3.4.21",
"vue-eslint-parser": "^9.4.2",
"vue-router": "^4.3.0",
Expand Down
4 changes: 3 additions & 1 deletion pages/[...all].vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export default defineComponent({
<template>
<div class="wrapper">
<VIcon class="logo mb-4" icon="mdi-view-grid-outline" />
<p class="text-h5">404 Not Found</p>
<p class="text-h5">
404 Not Found
</p>
</div>
</template>

Expand Down
4 changes: 3 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const name = ref('')
<VBtn class="mr-2" color="primary" :disabled="!name">
{{ $t('common.confirm') }}
</VBtn>
<VBtn :disabled="!name">{{ $t('common.cancel') }}</VBtn>
<VBtn :disabled="!name">
{{ $t('common.cancel') }}
</VBtn>
</div>
</template>
4 changes: 3 additions & 1 deletion pages/nested/menu1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ definePageMeta({
</script>

<template>
<VContainer fluid>empty page</VContainer>
<VContainer fluid>
empty page
</VContainer>
</template>
4 changes: 3 additions & 1 deletion pages/nested/menu2/menu2-1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ definePageMeta({
</script>

<template>
<div class="relative text-center py-2">Page: nested/menu2/menu2-1</div>
<div class="relative text-center py-2">
Page: nested/menu2/menu2-1
</div>
</template>
4 changes: 3 additions & 1 deletion pages/nested/menu2/menu2-2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ definePageMeta({
</script>

<template>
<div class="relative text-center py-2">Page: nested/menu2/menu2-2</div>
<div class="relative text-center py-2">
Page: nested/menu2/menu2-2
</div>
</template>
Loading

0 comments on commit 0532890

Please sign in to comment.