[Vuejs]-Can overly strict ES6 linting settings cause VueJS server to crash?

0👍

The ‘Prettier’ extension in VS Code will remove whitespace that the linter requires and cause the linting to fail

Uninstall Prettier and if you need a ‘Beautify’ option, use one that is designed for VueJS. It should go without saying but make sure you aren’t using a TS linter on a JS codebase and vice versa.

In the code listed above:

Remove the linting:

Before:

  "scripts": {
    "start": "./node_modules/nodemon/bin/nodemon.js src/app.js --exec 'npm run lint && node'",
    "lint": "./node_modules/.bin/eslint **/*.js"
  },

After (fix):

  "scripts": {
    "start": "./node_modules/nodemon/bin/nodemon.js src/app.js --exec 'npm run && node'"
},

I don’t think this is going to lint but it will at least allow the app to run

I suspect a version incompatibility issue or just running Linux while following an OSX guide. But this worked for me.

Leave a comment