From 8529e66e3322af5381da328185586b4992a06bc3 Mon Sep 17 00:00:00 2001 From: koziavin Date: Fri, 20 Jun 2025 16:11:27 +0400 Subject: [PATCH 1/3] fix --- .htmlvalidate.json | 11 +++++++---- eslint.config.ts | 31 ++++++++++++------------------- 2 files changed, 19 insertions(+), 23 deletions(-) diff --git a/.htmlvalidate.json b/.htmlvalidate.json index 602cbbc..292b1fa 100644 --- a/.htmlvalidate.json +++ b/.htmlvalidate.json @@ -1,10 +1,13 @@ { "root": true, - "extends": ["html-validate:recommended"], + "extends": [], "rules": { - "require-meta-charset": "error", + "heading-level": "error", "require-img-alt": "error", - "no-inline-style": "error", - "long-title": ["error", { "maxLength": 60 }] + "element-permitted-content": "error", + "require-meta-title": "error", + "require-meta-description": "error", + "no-duplicate-id": "error", + "prefer-native-element": "error" } } diff --git a/eslint.config.ts b/eslint.config.ts index 83db4c4..7c3bf6c 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -1,10 +1,7 @@ -import { globalIgnores } from "eslint/config"; -import { - defineConfigWithVueTs, - vueTsConfigs, -} from "@vue/eslint-config-typescript"; -import pluginVue from "eslint-plugin-vue"; -import skipFormatting from "@vue/eslint-config-prettier/skip-formatting"; +import { globalIgnores } from 'eslint/config' +import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript' +import pluginVue from 'eslint-plugin-vue' +import skipFormatting from '@vue/eslint-config-prettier/skip-formatting' // To allow more languages other than `ts` in `.vue` files, uncomment the following lines: // import { configureVueProject } from '@vue/eslint-config-typescript' @@ -13,23 +10,19 @@ import skipFormatting from "@vue/eslint-config-prettier/skip-formatting"; export default defineConfigWithVueTs( { - name: "app/files-to-lint", - files: ["**/*.{ts,mts,tsx,vue}"], + name: 'app/files-to-lint', + files: ['**/*.{ts,mts,tsx,vue}'], }, - globalIgnores([ - "**/dist/**", - "**/dist-ssr/**", - "**/coverage/**", - "./src/generated/**", - ]), + globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**', './src/generated/**']), - pluginVue.configs["flat/essential"], + pluginVue.configs['flat/essential'], vueTsConfigs.recommended, skipFormatting, { rules: { - "vue/multi-word-component-names": "off", + 'vue/multi-word-component-names': 'off', + 'vue/component-name-in-template-casing': ['error', 'PascalCase'], }, - } -); + }, +) From d92fc4cf6e78e66e1091909506e780ba4d422471 Mon Sep 17 00:00:00 2001 From: koziavin Date: Fri, 20 Jun 2025 16:53:15 +0400 Subject: [PATCH 2/3] fix --- nuxt.config.ts | 23 +++---- pages/books/[slug].vue | 135 ++++++++++++++++------------------------- 2 files changed, 63 insertions(+), 95 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index f4f4ff3..f277112 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,41 +1,42 @@ -import config from "./config"; +import config from './config' -import { fileURLToPath, URL } from "node:url"; -import head from "./config/head"; +import { fileURLToPath, URL } from 'node:url' +import head from './config/head' // import sitemap from "./config/sitemap"; // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ - compatibilityDate: "2025-05-15", + compatibilityDate: '2025-05-15', devtools: { enabled: true }, devServer: { - host: "localhost", + host: 'localhost', port: 4002, }, nitro: { output: { - dir: "./dist", + dir: './dist', }, }, alias: { - "@": fileURLToPath(new URL("./", import.meta.url)), + '@': fileURLToPath(new URL('./', import.meta.url)), }, - css: ["@/assets/css/tailwind.css"], + css: ['@/assets/css/tailwind.css'], ...config, htmlValidator: { usePrettier: true, - logLevel: "error", + logLevel: 'error', failOnError: false, }, app: { head: { + title: 'Vino Galante', htmlAttrs: { - lang: "ru", + lang: 'ru', }, ...head, }, }, -}); +}) diff --git a/pages/books/[slug].vue b/pages/books/[slug].vue index 58edf0d..1006a7d 100644 --- a/pages/books/[slug].vue +++ b/pages/books/[slug].vue @@ -16,11 +16,7 @@
- + {{ book.title }} @@ -41,9 +37,7 @@
- {{ book.price }}  + {{ book.price }}  ruble
@@ -59,9 +53,7 @@
-