davellanedam / vue-skeleton-mvp

VueJs, Vuetify, Vue Router and Vuex skeleton MVP written on JavaScript using async/await built to work with API REST skeleton: https://github.com/davellanedam/node-express-mongodb-jwt-rest-api-skeleton
MIT License
514 stars 150 forks source link

ES-Lint problems #256

Closed niclash closed 3 years ago

niclash commented 3 years ago

As soon as any file is modified, the ESlint kicks in with heaps of problems (practically all files), and these errors can't be ignored as they are forwarded to the client on a glass pane.

Example. Adding a single empty line in About.vue and I get this, relatively small, list of issues;

 ERROR  Failed to compile with 1 error                                                                                                                                                                      12:37:42 PM

 error  in ./src/components/About.vue

Module Error (from ./node_modules/eslint-loader/index.js):

/home/niclas/dev/pony/think4web/src/components/About.vue
  5:1  warning  Trailing spaces not allowed  no-trailing-spaces
  5:1  error    Delete `······`              prettier/prettier

✖ 2 problems (1 error, 1 warning)
  1 error and 1 warning potentially fixable with the `--fix` option.

 @ ./src/router/routes/about.js 81:11-83:29
 @ ./src/router/routes sync nonrecursive \.js$
 @ ./src/router/routes/index.js
 @ ./src/router/index.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://192.168.1.42:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
davellanedam commented 3 years ago

This is related to your previous issue report. You may also want to try to uninstall global ESLINT

niclash commented 3 years ago

No global ESLINT as far as I can find.

niclas@d1:~/dev/pony/newtest$ apt list | grep eslint

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

eslint/testing,testing,testing 5.16.0~dfsg+~4.16.8-5 all
node-babel-eslint/testing,testing,testing 10.1.0-2 all
node-eslint-plugin-es/testing,testing,testing 4.1.0~ds1-2 all
node-eslint-plugin-eslint-plugin/testing,testing,testing 2.3.0+~0.3.0-2 all
node-eslint-plugin-flowtype/testing,testing,testing 2.25.0-3 all
node-eslint-plugin-html/testing,testing,testing 6.1.1-1 all
node-eslint-plugin-node/testing,testing,testing 11.1.0~ds-4 all
node-eslint-plugin-requirejs/testing,testing,testing 4.0.0-7 all
node-eslint-scope/testing,testing,testing 5.1.1-1 all
node-eslint-utils/testing,testing,testing 2.1.0-3 all
node-eslint-visitor-keys/testing,testing,testing 2.0.0+~0.0.45-1 all
node-mysticatea-eslint-plugin/testing,testing,testing 11.0.0~ds-3 all
niclas@d1:~/dev/pony/newtest$ ls /usr/local/lib/node_modules/*/
/usr/local/lib/node_modules/@apache-royale/:
royale-js

/usr/local/lib/node_modules/@fortawesome/:
fontawesome-free

/usr/local/lib/node_modules/ember-cli/:
CHANGELOG.md  CODE_OF_CONDUCT.md  CONTRIBUTING.md  LICENSE  README.md  RELEASE.md  bin  blueprints  docs  lib  node_modules  package.json  tests

/usr/local/lib/node_modules/jquery/:
AUTHORS.txt  LICENSE.txt  README.md  bower.json  dist  external  package.json  src

/usr/local/lib/node_modules/meteor/:
LICENSE  README.md  admin  node_modules  package.json

/usr/local/lib/node_modules/npm/:
AUTHORS  CHANGELOG.md  CONTRIBUTING.md  LICENSE  Makefile  README.md  bin  changelogs  configure  docs  lib  make.bat  man  node_modules  npmrc  package.json  scripts

/usr/local/lib/node_modules/singlepage-js/:
CHANGELOG  LICENSE  README.md  bin  dev  dist  lib  node_modules  package.json  rollup.config.js  tests

/usr/local/lib/node_modules/webpack-cli/:
CHANGELOG.md  LICENSE  README.md  bin  lib  node_modules  package.json

/usr/local/lib/node_modules/yarn/:
LICENSE  README.md  bin  lib  package.json  preinstall.js
davellanedam commented 3 years ago

Try npm list -g

niclash commented 3 years ago
niclas@d1:~/dev/pony/newtest$ npm list -g
/usr/local/lib
├── @apache-royale/royale-js@0.9.7
├── @fortawesome/fontawesome-free@5.15.1
├── ember-cli@3.22.0
├── jquery@3.5.1
├── meteor@0.0.2
├── npm@7.0.13
├── singlepage-js@0.5.0
├── webpack-cli@4.4.0
└── yarn@1.22.10
niclash commented 3 years ago

This sorted itself out when the npm update in #255 was solved.