A Docker container that runs ESLint style checks on your JavaScript.
- Mount your source code directory inside the container at
/code
. - Specify the
ESLINT_PATH
environment variable to check only a specific path inside your source code. (optional) - Add any additional parameters to pass to ESLint after your
run
command, or ascommand
if you are using this with docker-compose.
sudo docker run savoirfairelinux/eslint-airbnb:latest \
--rm -it -v "/path/to/my/project:/code:ro" \
-e "ESLINT_PATH=demo/static/js/**/*"