OH-SHOWN/ohshown-frontend

lint error when commiting

Closed this issue · 2 comments

When committing my first commit into the forked disfactory code base, the lint complains:

✖ vue-cli-service lint found some errors. Please fix them and try committing again.

 ERROR  SyntaxError: Failed to load plugin 'jest-dom' declared in '.eslintrc.js': Unexpected token {
Referenced from: /home/tai271828/work-my-projects/tbbca/frontend/.eslintrc.js
/home/tai271828/work-my-projects/tbbca/frontend/node_modules/@testing-library/dom/dist/get-user-code-frame.js:17
} catch {// We're in a browser environment
      ^

Maybe the vue version or lint tool version is not expected because the code base should be "pristine" as the original code base.

It seems nodejs version issue and could be resolved by using the expected v15 version.