Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
chore(deps): update devdependency @nuxtjs/eslint-config-typescript to…
Browse files Browse the repository at this point in the history
… v12 (#9086)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
  • Loading branch information
renovate[bot] and danielroe committed Jan 14, 2023
1 parent f314e9d commit 0b1cdcc
Show file tree
Hide file tree
Showing 15 changed files with 107 additions and 95 deletions.
1 change: 1 addition & 0 deletions docs/scripts/gen-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ async function generateDocs ({ configFile, configTemplate }) {
const start = Date.now()
console.log(`Updating docs on ${configFile}`)
const template = await readFile(configTemplate, 'utf8')
// eslint-disable-next-line @typescript-eslint/no-var-requires
const rootSchema = require('../../packages/schema/schema/config.schema.json') as Schema
const keys = Object.keys(rootSchema.properties).sort()
let generatedDocs = ''
Expand Down
1 change: 1 addition & 0 deletions docs/scripts/map-redirects.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { readFile, writeFile } = require('node:fs/promises')

const netlifyToVercel = (redirects) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/routing/layouts/middleware/other.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars

export default defineNuxtRouteMiddleware(() => {
setPageLayout('other')
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@nuxt/test-utils": "workspace:*",
"@nuxt/vite-builder": "workspace:*",
"@nuxt/webpack-builder": "workspace:*",
"@nuxtjs/eslint-config-typescript": "^11.0.0",
"@nuxtjs/eslint-config-typescript": "^12.0.0",
"@types/crawler": "^1.2.2",
"@types/node": "^18.11.18",
"@types/rimraf": "^3",
Expand Down
8 changes: 4 additions & 4 deletions packages/nuxt/src/app/components/nuxt-island.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ export default defineComponent({
html.value = res.html
}

if (process.server || !nuxtApp.isHydrating) {
await fetchComponent()
}

if (process.client) {
watch(props, debounce(fetchComponent, 100))
}

if (process.server || !nuxtApp.isHydrating) {
await fetchComponent()
}

return () => createStaticVNode(html.value, 1)
}
})
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/composables/ssr.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable no-redeclare */

import type { H3Event } from 'h3'
import type { NuxtApp } from '../nuxt'
import { useNuxtApp } from '../nuxt'
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if (process.client) {
}

entry().catch((error: unknown) => {
console.error('Error while mounting app:', error) // eslint-disable-line no-console
console.error('Error while mounting app:', error)
})
}

Expand Down
1 change: 0 additions & 1 deletion packages/nuxt/src/components/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export default defineNuxtModule<ComponentsOptions>({

const present = isDirectory(dirPath)
if (!present && !DEFAULT_COMPONENTS_DIRS_RE.test(dirOptions.path)) {
// eslint-disable-next-line no-console
console.warn('Components directory not found: `' + dirPath + '`')
}

Expand Down
1 change: 1 addition & 0 deletions packages/nuxt/src/components/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { globby } from 'globby'
import { pascalCase, splitByCase } from 'scule'
import type { Component, ComponentsDir } from '@nuxt/schema'
import { isIgnored } from '@nuxt/kit'
// eslint-disable-next-line vue/prefer-import-from-vue
import { hyphenate } from '@vue/shared'
import { withTrailingSlash } from 'ufo'

Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/src/pages/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function parseSegment (segment: string) {
} else if (PARAM_CHAR_RE.test(c)) {
buffer += c
} else {
// eslint-disable-next-line no-console

// console.debug(`[pages]Ignored character "${c}" while building param "${buffer}" from "segment"`)
}
break
Expand Down
1 change: 0 additions & 1 deletion packages/vite/src/dev-bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ ${genDynamicImport(path, { wrapper: false })}

// Transform
const res: SSRTransformResult = await opts.viteServer.transformRequest(id, { ssr: true }).catch((err) => {
// eslint-disable-next-line no-console
console.warn(`[SSR] Error transforming ${id}:`, err)
// console.error(err)
}) as SSRTransformResult || { code: '', map: {}, deps: [], dynamicDeps: [] }
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack/src/plugins/vue/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default class VueSSRClientPlugin {
// Find all asset modules associated with the same chunk
assetModules.forEach((m) => {
if (m.chunks!.includes(cid)) {
files.push.apply(files, (m.assets as string[]).map(fileToIndex))
files.push(...(m.assets as string[]).map(fileToIndex))
}
})
}
Expand Down
Loading

0 comments on commit 0b1cdcc

Please sign in to comment.