Skip to content
loading...

Use eslint with docker

github logo ・1 min read  

Hi guys, I have a problem when develop with docker.
Everything is fine until I used Sublime Text + Eslint ( in devDepensives ) + Docker.
I also used SublimeLinter in Sublime Text. When sublime text started up, it said cannot found 'eslint'. The reason is node_modules is empty.
I have mapped host's node_modules to docker container. Below is my docker-compose:

frontend:
build: ./frontend
ports:
- "3000:3000"
- "35729:35729"
volumes:

  • ./frontend:/app/frontend
  • /app/frontend/node_modules command: yarn start

Thank you for your help.

twitter logo DISCUSS
Classic DEV Post from May 2 '19

Javascript Array.push is 945x faster than Array.concat 🤯🤔

It took six whole seconds to merge 15,000 arrays with an average size of 5 elements with .concat. What the hell is the Javascript's .concat method doing under the hood?

Nam Le profile image

dev.to now has dark theme. 🌝

Go to the "misc" section of your settings and select night theme

P.S. You can also change font to sans serif, which a lot of folks prefer. 💖