Use eslint with docker

namcoder

Nam Le

Posted on October 13, 2018

Use eslint with docker

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.

💖 💪 🙅 🚩
namcoder
Nam Le

Posted on October 13, 2018

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Use eslint with docker
help Use eslint with docker

October 13, 2018