Bladeren bron

chore: 1061 fix eslint errors in docs (#1063)

* chore: applied lint fixes

* chore: add docs linting command to package.json and CI workflow

* chore: added eol

* chore: added tres lint config and applied lint fixes

* chore: removed duplicate dependency

* chore: restored withNuxt in eslint config

* chore: cleaned up ESLint configuration and remove unused dependencies

* chore: removed lint module
Tino Koch 1 dag geleden
bovenliggende
commit
562f8bb295
7 gewijzigde bestanden met toevoegingen van 357 en 221 verwijderingen
  1. 2 0
      .github/workflows/ci.yml
  2. 1 1
      docs/app/components/DottedDiagram.vue
  3. 2 10
      docs/eslint.config.mjs
  4. 0 10
      docs/nuxt.config.ts
  5. 1 1
      docs/package.json
  6. 1 0
      package.json
  7. 350 199
      pnpm-lock.yaml

+ 2 - 0
.github/workflows/ci.yml

@@ -40,5 +40,7 @@ jobs:
         run: pnpm run lint
       - name: Unit tests
         run: pnpm run test
+      - name: Docs lint
+        run: pnpm run docs:lint
       - name: Docs typecheck
         run: pnpm run docs:typecheck

+ 1 - 1
docs/app/components/DottedDiagram.vue

@@ -3,7 +3,7 @@
 </script>
 
 <template>
-  <div class="aspect-video p-2 my-8 w-full rounded-lg border border-gray-100 dark:border-gray-800 pattern-dot-bg bg-neutral-50 dark:bg-neutral-900 flex justify-center items-center items-center">
+  <div class="aspect-video p-2 my-8 w-full rounded-lg border border-gray-100 dark:border-gray-800 pattern-dot-bg bg-neutral-50 dark:bg-neutral-900 flex justify-center items-center">
     <slot></slot>
   </div>
 </template>

+ 2 - 10
docs/eslint.config.mjs

@@ -1,11 +1,3 @@
-// @ts-check
-import withNuxt from './.nuxt/eslint.config.mjs'
+import { tresLintConfig } from '@tresjs/eslint-config'
 
-export default withNuxt(
-  // Your custom configs here
-  {
-    rules: {
-      '@stylistic/comma-dangle': ['off', 'always-multiline'],
-    },
-  },
-)
+export default tresLintConfig({})

+ 0 - 10
docs/nuxt.config.ts

@@ -28,7 +28,6 @@ const pkg = JSON.parse(readFileSync(rootPkgPath!, 'utf-8'))
 // https://nuxt.com/docs/api/configuration/nuxt-config
 export default defineNuxtConfig({
   modules: [
-    '@nuxt/eslint',
     '@nuxt/image',
     '@nuxt/ui-pro',
     '@nuxt/content',
@@ -74,15 +73,6 @@ export default defineNuxtConfig({
     },
   },
 
-  eslint: {
-    config: {
-      stylistic: {
-        commaDangle: 'never',
-        braceStyle: '1tbs',
-      },
-    },
-  },
-
   icon: {
     provider: 'iconify',
   },

+ 1 - 1
docs/package.json

@@ -9,6 +9,7 @@
     "generate": "nuxt generate",
     "preview": "nuxt preview",
     "lint": "eslint .",
+    "lint:fix": "eslint . --fix",
     "typecheck": "nuxt typecheck"
   },
   "dependencies": {
@@ -27,7 +28,6 @@
     "vue-router": "^4.5.0"
   },
   "devDependencies": {
-    "@nuxt/eslint": "^1.4.1",
     "eslint": "^9.28.0",
     "typescript": "^5.8.3",
     "vue-tsc": "^2.2.10"

+ 1 - 0
package.json

@@ -69,6 +69,7 @@
     "docs:dev": "pnpm --filter='./docs' dev",
     "docs:generate": "pnpm --filter='./docs' generate",
     "docs:prepare": "pnpm --filter='./docs' prepare",
+    "docs:lint": "pnpm --filter='./docs' lint",
     "docs:typecheck": "pnpm --filter='./docs' typecheck",
     "postinstall": "pnpm run build && pnpm --filter='./docs' prepare"
   },

File diff suppressed because it is too large
+ 350 - 199
pnpm-lock.yaml


Some files were not shown because too many files changed in this diff