[Solved] Error: #error More than 1 blank line not allowed no-multiple-empty-lines

Error reporting environment

After creating Vue scaffolding,

    1. Modify/SRC/app.vue to delete code we don’t need
<template>
  <div id="app">
    my_ui
  </div>
</template>

<script>


export default {

}
</script>

<style lang="scss">

</style>

Start project: NPM run serve error: error more than 1 blank line not allowed no multiple empty lines

Screenshot of error report

Error reporting translation

Error more than 1 blank line not allowed no multiple empty lines

Error reporting solution

Method 1:

According to the error prompt, find the relevant module. Here is the app. Vue
we modified earlier. Delete the redundant blank lines in it

Method 2:

Close eslint


Read More: