[Vuejs]-ESLint GitHub Action Fails on Vue2 (Works Locally)

0👍

Turns out there’s an issue with the Nuxt linter plugin – at least on the environment I’m using. This is the config that ended up working in the end:

...
  "scripts": {
    ...
    "pipeline-lint": "eslint . --ext .js,.vue",
    "lint": "eslint --fix . --ext .js,.vue"
  }
  ...
  "devDependencies": {
    "eslint": "^8.26.0",
    "eslint-plugin-vue": "^9.6.0",
    "webpack": "^4.46.0"
    ...
  }
  ...

I had to specify the webpack version to prevent a build issue once the PR merged (shown in snippit), but otherwise this config solved the issue I was having.

Leave a comment