mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
style: fix various lint issues
This commit is contained in:
parent
426cf1b3de
commit
fc0d1872e9
@ -7,4 +7,4 @@ declare module NodeJS {
|
|||||||
server: boolean
|
server: boolean
|
||||||
static: boolean
|
static: boolean
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
interface Window {
|
interface Window {
|
||||||
__NUXT__?: Record<string, any>
|
__NUXT__?: Record<string, any>
|
||||||
}
|
}
|
||||||
|
@ -51,4 +51,4 @@ declare module 'vue' {
|
|||||||
interface App {
|
interface App {
|
||||||
$nuxt: Nuxt
|
$nuxt: Nuxt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { createSSRApp } from 'vue'
|
import { createSSRApp } from 'vue'
|
||||||
import plugins from './plugins.client'
|
|
||||||
import { init } from 'nuxt-app'
|
import { init } from 'nuxt-app'
|
||||||
|
import plugins from './plugins.client'
|
||||||
import App from '<%= appPath %>'
|
import App from '<%= appPath %>'
|
||||||
|
|
||||||
async function initApp () {
|
async function initApp () {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import sharedPlugins from './plugins'
|
|
||||||
import preload from 'nuxt-app/plugins/preload'
|
import preload from 'nuxt-app/plugins/preload'
|
||||||
|
import sharedPlugins from './plugins'
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
...sharedPlugins,
|
...sharedPlugins,
|
||||||
|
@ -12,4 +12,4 @@ const components: Plugin = function ({ app }) {
|
|||||||
app.component('NLink', RouterLink) // TODO: deprecate
|
app.component('NLink', RouterLink) // TODO: deprecate
|
||||||
}
|
}
|
||||||
|
|
||||||
export default components
|
export default components
|
||||||
|
@ -17,4 +17,4 @@ const legacy: Plugin = function ({ app }) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default legacy
|
export default legacy
|
||||||
|
@ -2,7 +2,7 @@ import type { Plugin } from 'nuxt/vue-app/types'
|
|||||||
|
|
||||||
const preload: Plugin = function ({ app }) {
|
const preload: Plugin = function ({ app }) {
|
||||||
app.mixin({
|
app.mixin({
|
||||||
beforeCreate() {
|
beforeCreate () {
|
||||||
const { _registeredComponents } = this.$nuxt.ssrContext
|
const { _registeredComponents } = this.$nuxt.ssrContext
|
||||||
const { __moduleIdentifier } = this.$options
|
const { __moduleIdentifier } = this.$options
|
||||||
_registeredComponents.push(__moduleIdentifier)
|
_registeredComponents.push(__moduleIdentifier)
|
||||||
@ -10,4 +10,4 @@ const preload: Plugin = function ({ app }) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default preload
|
export default preload
|
||||||
|
@ -38,4 +38,4 @@ const router: Plugin = function ({ app }) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default router
|
export default router
|
||||||
|
@ -14,4 +14,4 @@ const state: Plugin = function ({ app }) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default state
|
export default state
|
||||||
|
Loading…
Reference in New Issue
Block a user