diff --git a/package.json b/package.json
index 20bd9936e4..058e583002 100644
--- a/package.json
+++ b/package.json
@@ -49,7 +49,7 @@
"scripts": {
"test": "npm run lint && cross-env NODE_ENV=test npm run build:nuxt && nyc ava --verbose --serial test/ -- && nyc report --reporter=html",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
- "lint": "eslint --ext .js,.vue bin/** lib/** test/*.js --ignore-pattern app",
+ "lint": "eslint --ext .js,.vue bin/** lib/** test/** --ignore-pattern app --ignore-pattern node_modules --ignore-pattern dist/",
"build": "rimraf dist/ && npm run build:nuxt && npm run build:core",
"build:nuxt": "rollup -c build/rollup.config.js --environment TARGET:nuxt",
"build:core": "rollup -c build/rollup.config.js --environment TARGET:core",
diff --git a/test/fixtures/basic/pages/async-data.vue b/test/fixtures/basic/pages/async-data.vue
index f999fb6871..752a286c18 100755
--- a/test/fixtures/basic/pages/async-data.vue
+++ b/test/fixtures/basic/pages/async-data.vue
@@ -4,7 +4,7 @@
diff --git a/test/fixtures/basic/pages/callback-async-data.vue b/test/fixtures/basic/pages/callback-async-data.vue
index 7b0610e5ac..07481dd1fb 100644
--- a/test/fixtures/basic/pages/callback-async-data.vue
+++ b/test/fixtures/basic/pages/callback-async-data.vue
@@ -4,7 +4,7 @@
diff --git a/test/fixtures/children/pages/parent/_id.vue b/test/fixtures/children/pages/parent/_id.vue
index 39d66d2396..8fbd0650a0 100644
--- a/test/fixtures/children/pages/parent/_id.vue
+++ b/test/fixtures/children/pages/parent/_id.vue
@@ -5,16 +5,16 @@
diff --git a/test/fixtures/children/pages/parent/validate-child.vue b/test/fixtures/children/pages/parent/validate-child.vue
index 4fd4d4bb2d..c832cd4be0 100644
--- a/test/fixtures/children/pages/parent/validate-child.vue
+++ b/test/fixtures/children/pages/parent/validate-child.vue
@@ -4,7 +4,7 @@
\ No newline at end of file
+
diff --git a/test/fixtures/spa/pages/index.vue b/test/fixtures/spa/pages/index.vue
index 54eff53255..c60926b6ac 100644
--- a/test/fixtures/spa/pages/index.vue
+++ b/test/fixtures/spa/pages/index.vue
@@ -4,9 +4,9 @@
\ No newline at end of file
+
diff --git a/test/fixtures/ssr/components/test.vue b/test/fixtures/ssr/components/test.vue
index cdc10f9b6f..9a0b51634b 100644
--- a/test/fixtures/ssr/components/test.vue
+++ b/test/fixtures/ssr/components/test.vue
@@ -8,10 +8,10 @@
import { nextId } from '@/lib/db'
export default {
- data() {
- return {
- id: nextId()
- }
+ data() {
+ return {
+ id: nextId()
}
+ }
}
\ No newline at end of file
diff --git a/test/fixtures/ssr/pages/asyncComponent.vue b/test/fixtures/ssr/pages/asyncComponent.vue
index 947aa7994c..53b77b0d20 100644
--- a/test/fixtures/ssr/pages/asyncComponent.vue
+++ b/test/fixtures/ssr/pages/asyncComponent.vue
@@ -8,7 +8,7 @@
const AsyncTest = () => import('@/components/test.vue').then((m) => m.default || m)
export default {
- components:{
+ components: {
AsyncTest
}
}
diff --git a/test/fixtures/ssr/pages/asyncData.vue b/test/fixtures/ssr/pages/asyncData.vue
index 5f194666ed..f2883f6dc1 100644
--- a/test/fixtures/ssr/pages/asyncData.vue
+++ b/test/fixtures/ssr/pages/asyncData.vue
@@ -6,10 +6,10 @@
import { nextId } from '@/lib/db'
export default {
- async asyncData() {
- return {
- id: nextId()
- }
+ async asyncData() {
+ return {
+ id: nextId()
}
+ }
}
diff --git a/test/fixtures/ssr/pages/component.vue b/test/fixtures/ssr/pages/component.vue
index 316ad6e5ec..3ab75cac5b 100644
--- a/test/fixtures/ssr/pages/component.vue
+++ b/test/fixtures/ssr/pages/component.vue
@@ -8,8 +8,8 @@
import test from '@/components/test'
export default {
- components : {
- test
- }
+ components: {
+ test
+ }
}
\ No newline at end of file
diff --git a/test/fixtures/ssr/pages/data.vue b/test/fixtures/ssr/pages/data.vue
index f627b7b373..fbf8c51259 100644
--- a/test/fixtures/ssr/pages/data.vue
+++ b/test/fixtures/ssr/pages/data.vue
@@ -6,10 +6,10 @@
import { nextId } from '@/lib/db'
export default {
- data() {
- return {
- id: nextId()
- }
+ data() {
+ return {
+ id: nextId()
}
+ }
}
diff --git a/test/fixtures/ssr/pages/fetch.vue b/test/fixtures/ssr/pages/fetch.vue
index 27ed0ec8bc..6accc75c5c 100644
--- a/test/fixtures/ssr/pages/fetch.vue
+++ b/test/fixtures/ssr/pages/fetch.vue
@@ -6,9 +6,9 @@
import { nextId } from '@/lib/db'
export default {
- async fetch({store}) {
- // We use store just as a shared reference
- store.__id = nextId()
- },
+ async fetch({store}) {
+ // We use store just as a shared reference
+ store.__id = nextId()
+ }
}
diff --git a/test/fixtures/ssr/store/index.js b/test/fixtures/ssr/store/index.js
index e98ccc4f5d..4e5552d398 100644
--- a/test/fixtures/ssr/store/index.js
+++ b/test/fixtures/ssr/store/index.js
@@ -8,13 +8,13 @@ export const state = () => {
}
export const mutations = {
- setId2 (state, id) {
+ setId2(state, id) {
state.id2 = id
}
}
export const actions = {
- nuxtServerInit ({ commit, state }, { route }) {
+ nuxtServerInit({ commit, state }, { route }) {
if (route.query.onServerInit === '1') {
commit('setId2', nextId())
}
diff --git a/test/fixtures/with-config/components/loading.vue b/test/fixtures/with-config/components/loading.vue
index 9c28022726..4cec640bfc 100644
--- a/test/fixtures/with-config/components/loading.vue
+++ b/test/fixtures/with-config/components/loading.vue
@@ -10,10 +10,10 @@ export default {
loading: false
}),
methods: {
- start () {
+ start() {
this.loading = true
},
- finish () {
+ finish() {
this.loading = false
}
}
diff --git a/test/fixtures/with-config/middleware/noop.js b/test/fixtures/with-config/middleware/noop.js
index 26f7210f3d..335d554e10 100644
--- a/test/fixtures/with-config/middleware/noop.js
+++ b/test/fixtures/with-config/middleware/noop.js
@@ -1,3 +1,3 @@
export default function () {
- // NOOP!
-}
\ No newline at end of file
+ // NOOP!
+}
diff --git a/test/fixtures/with-config/nuxt.config.js b/test/fixtures/with-config/nuxt.config.js
index 2b60043d1c..44ec31ec13 100644
--- a/test/fixtures/with-config/nuxt.config.js
+++ b/test/fixtures/with-config/nuxt.config.js
@@ -3,7 +3,7 @@ module.exports = {
router: {
base: '/test/',
middleware: 'noop',
- extendRoutes (routes) {
+ extendRoutes(routes) {
return [
...routes,
{
@@ -42,7 +42,7 @@ module.exports = {
analyzerMode: 'disabled',
generateStatsFile: true
},
- extend (config, options) {
+ extend(config, options) {
return Object.assign({}, config, {
devtool: 'nosources-source-map'
})
diff --git a/test/fixtures/with-config/pages/env.vue b/test/fixtures/with-config/pages/env.vue
index 5f65ca8d87..1c2dd3419e 100644
--- a/test/fixtures/with-config/pages/env.vue
+++ b/test/fixtures/with-config/pages/env.vue
@@ -13,7 +13,7 @@ export default {
data() {
return { processEnv: process.env.object }
},
- asyncData ({ env }) {
+ asyncData({ env }) {
delete env.object
return { env }
}
diff --git a/test/fixtures/with-config/pages/error.vue b/test/fixtures/with-config/pages/error.vue
index a707538cd6..d786a73ea4 100644
--- a/test/fixtures/with-config/pages/error.vue
+++ b/test/fixtures/with-config/pages/error.vue
@@ -4,7 +4,7 @@