diff --git a/benchmarks/pages/stateless-big.vue b/benchmarks/pages/stateless-big.vue
index 9011162e55..2d2418027b 100644
--- a/benchmarks/pages/stateless-big.vue
+++ b/benchmarks/pages/stateless-big.vue
@@ -1,5 +1,5 @@
-
- - This is row {{ n + 1 }}
-
-
\ No newline at end of file
+
+ - This is row {{ n + 1 }}
+
+
diff --git a/benchmarks/pages/stateless.vue b/benchmarks/pages/stateless.vue
index 5f8615de3c..fc2eef5cf0 100644
--- a/benchmarks/pages/stateless.vue
+++ b/benchmarks/pages/stateless.vue
@@ -1,3 +1,3 @@
- My component!
-
\ No newline at end of file
+ My component!
+
diff --git a/package.json b/package.json
index 541418155a..99dcba9e9e 100644
--- a/package.json
+++ b/package.json
@@ -55,7 +55,7 @@
"build:make-start": "node scripts/make-start",
"clean": "rimraf dist",
"coverage": "codecov",
- "lint": "eslint --ext .js,.mjs,.vue bin/** lib test examples",
+ "lint": "eslint --ext .js,.mjs,.vue bin/** scripts/** lib test examples benchmarks",
"postinstall": "opencollective postinstall || exit 0",
"prebuild": "yarn clean",
"security": "nsp check || true",
diff --git a/scripts/make-start b/scripts/make-start
index 8545b8674e..caa8126165 100755
--- a/scripts/make-start
+++ b/scripts/make-start
@@ -39,8 +39,8 @@ while (match) {
requires = requires.filter(r => excludes.indexOf(r) === -1)
// Resolve version constrains
-let dependencies = {}
-requires.forEach(r => {
+const dependencies = {}
+requires.forEach((r) => {
if (!packageJSON.dependencies[r]) {
// eslint-disable-next-line no-console
console.warn('Cannot resolve dependency version for ' + r)
@@ -50,10 +50,8 @@ requires.forEach(r => {
})
// Drop fields
-let drops = ['devDependencies', 'scripts', 'nyc', 'types']
-drops.forEach(k => {
- delete packageJSON[k]
-})
+const drops = ['devDependencies', 'scripts', 'nyc', 'types']
+drops.forEach(k => delete packageJSON[k])
// Update dependencies
packageJSON.dependencies = dependencies
@@ -73,12 +71,12 @@ writeFileSync(
// Copy required files
const excludeFiles = ['README.md', '.gitignore']
-packageJSON.files.forEach(file => {
+packageJSON.files.forEach((file) => {
if (excludeFiles.indexOf(file) !== -1) {
return
}
- let src = resolve(rootDir, file)
- let dst = resolve(startDir, file)
+ const src = resolve(rootDir, file)
+ const dst = resolve(startDir, file)
// console.log(relative(rootDir, src), '~>', relative(rootDir, dst))
removeSync(dst)
copySync(src, dst)
@@ -93,9 +91,7 @@ const extraFiles = [
'dist/nuxt.js',
'dist/nuxt.js.map'
]
-extraFiles.forEach(file => {
- removeSync(resolve(startDir, file))
-})
+extraFiles.forEach(file => removeSync(resolve(startDir, file)))
// Patch bin/nuxt-start
const binStart = resolve(startDir, 'bin/nuxt-start')