diff --git a/babel.config.js b/babel.config.js
index a6f2bd372a..a3f41eae70 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,4 +1,4 @@
-function isBabelLoader(caller) {
+function isBabelLoader (caller) {
return caller && caller.name === 'babel-loader'
}
diff --git a/distributions/nuxt-start/package.js b/distributions/nuxt-start/package.js
index 2142a3cbe2..2cf87382f8 100644
--- a/distributions/nuxt-start/package.js
+++ b/distributions/nuxt-start/package.js
@@ -1,7 +1,7 @@
export default {
build: true,
hooks: {
- async 'build:done'(pkg) {
+ async 'build:done' (pkg) {
const mono = pkg.load('../..')
const nuxt = pkg.load('../nuxt')
diff --git a/distributions/nuxt-ts/package.js b/distributions/nuxt-ts/package.js
index 7ec679a347..1d36d3a987 100644
--- a/distributions/nuxt-ts/package.js
+++ b/distributions/nuxt-ts/package.js
@@ -1,7 +1,7 @@
export default {
build: false,
hooks: {
- async 'build:done'(pkg) {
+ async 'build:done' (pkg) {
const mono = pkg.load('../..')
const nuxt = pkg.load('../nuxt')
diff --git a/distributions/nuxt/package.js b/distributions/nuxt/package.js
index 53aeeab1ec..e082988663 100644
--- a/distributions/nuxt/package.js
+++ b/distributions/nuxt/package.js
@@ -1,7 +1,7 @@
export default {
build: true,
hooks: {
- async 'build:done'(pkg) {
+ async 'build:done' (pkg) {
const mono = pkg.load('../..')
await pkg.copyFilesFrom(mono, [
diff --git a/examples/async-component-injection/pages/_slug.vue b/examples/async-component-injection/pages/_slug.vue
index 9ac714694a..120d8f32ce 100644
--- a/examples/async-component-injection/pages/_slug.vue
+++ b/examples/async-component-injection/pages/_slug.vue
@@ -12,7 +12,7 @@ const getPost = slug => ({
})
export default {
- beforeCreate() {
+ beforeCreate () {
this.component = () => getPost(this.$route.params.slug)
}
}
diff --git a/examples/async-data/pages/posts/_id.vue b/examples/async-data/pages/posts/_id.vue
index c7deb9f3da..c391a073a9 100644
--- a/examples/async-data/pages/posts/_id.vue
+++ b/examples/async-data/pages/posts/_id.vue
@@ -15,12 +15,12 @@
import axios from 'axios'
export default {
- async asyncData({ params }) {
+ async asyncData ({ params }) {
// We can use async/await ES6 feature
const { data } = await axios.get(`https://jsonplaceholder.typicode.com/posts/${params.id}`)
return { post: data }
},
- head() {
+ head () {
return {
title: this.post.title
}
diff --git a/examples/async-data/pages/posts/index.vue b/examples/async-data/pages/posts/index.vue
index 7a375b422e..b026891f03 100644
--- a/examples/async-data/pages/posts/index.vue
+++ b/examples/async-data/pages/posts/index.vue
@@ -21,7 +21,7 @@
import axios from 'axios'
export default {
- asyncData({ req, params }) {
+ asyncData ({ req, params }) {
// We can return a Promise instead of calling the callback
return axios.get('https://jsonplaceholder.typicode.com/posts')
.then((res) => {
diff --git a/examples/auth-jwt/pages/index.vue b/examples/auth-jwt/pages/index.vue
index a45edb3063..d75075dc90 100644
--- a/examples/auth-jwt/pages/index.vue
+++ b/examples/auth-jwt/pages/index.vue
@@ -25,7 +25,7 @@ const Cookie = process.client ? require('js-cookie') : undefined
export default {
methods: {
- logout() {
+ logout () {
Cookie.remove('auth')
this.$store.commit('setAuth', null)
}
diff --git a/examples/auth-jwt/pages/login.vue b/examples/auth-jwt/pages/login.vue
index 5a64ecb8c8..be11d62eb5 100644
--- a/examples/auth-jwt/pages/login.vue
+++ b/examples/auth-jwt/pages/login.vue
@@ -22,7 +22,7 @@ const Cookie = process.client ? require('js-cookie') : undefined
export default {
middleware: 'notAuthenticated',
methods: {
- postLogin() {
+ postLogin () {
setTimeout(() => { // we simulate the async request with timeout.
const auth = {
accessToken: 'someStringGotFromApiServiceWithAjax'
diff --git a/examples/auth-jwt/store/index.js b/examples/auth-jwt/store/index.js
index b37ced1dac..16a41ee1b2 100644
--- a/examples/auth-jwt/store/index.js
+++ b/examples/auth-jwt/store/index.js
@@ -6,12 +6,12 @@ export const state = () => {
}
}
export const mutations = {
- setAuth(state, auth) {
+ setAuth (state, auth) {
state.auth = auth
}
}
export const actions = {
- nuxtServerInit({ commit }, { req }) {
+ nuxtServerInit ({ commit }, { req }) {
let auth = null
if (req.headers.cookie) {
const parsed = cookieparser.parse(req.headers.cookie)
diff --git a/examples/auth-routes/pages/index.vue b/examples/auth-routes/pages/index.vue
index a04a30b509..99e0405d90 100644
--- a/examples/auth-routes/pages/index.vue
+++ b/examples/auth-routes/pages/index.vue
@@ -30,7 +30,7 @@
diff --git a/test/fixtures/spa/pages/error-handler-object.vue b/test/fixtures/spa/pages/error-handler-object.vue
index 72ace409a7..61befefe5c 100644
--- a/test/fixtures/spa/pages/error-handler-object.vue
+++ b/test/fixtures/spa/pages/error-handler-object.vue
@@ -1,7 +1,7 @@
diff --git a/test/fixtures/spa/pages/index.vue b/test/fixtures/spa/pages/index.vue
index c60926b6ac..cb0d3ede1e 100644
--- a/test/fixtures/spa/pages/index.vue
+++ b/test/fixtures/spa/pages/index.vue
@@ -4,7 +4,7 @@