What does it do?#
Runs common JavaScript and CSS tooling inside Docker containers — no local Node.js install required.
Commands#
Commands you can run to use this.
Aliases#
| Alias | Tool | Image |
|---|---|---|
stylelint-docker | Stylelint CSS linter (community image) | solutiondrive/stylelint:latest |
eslint-docker | ESLint (community image) | pipelinecomponents/eslint:latest |
node-docker | Node.js REPL / scripts | node:22-alpine |
npm-docker | npm | node:22-alpine |
yarn-docker | Yarn | node:22-alpine |
pnpm-docker | pnpm | node:22-alpine |
node-bash-docker | Interactive bash in Node container | node:22-alpine |
Usage#
# Lint a CSS file
stylelint-docker bad.css
# Lint all JS files in the current directory
eslint-docker .
# Run a Node.js script
node-docker script.js
# Install npm dependencies
npm-docker install
yarn-docker install
pnpm-docker install
# Drop into an interactive shell in the Node container
node-bash-dockerNote:
eslint-dockerandstylelint-dockerboth invoke their image’slintsub-command under the hood (e.g.docker run ... pipelinecomponents/eslint:latest lint <your args>), so any arguments you pass are forwarded to that sub-command.
PowerShell:
js/docker-js-devtools.ps1now has full parity with the Bash version — same aliases (eslint-docker,stylelint-docker,prettier-docker,biome-docker,tsc-docker,node-docker,node-bash-docker,npm-docker,yarn-docker,pnpm-docker), same images. See the PowerShell page for the full platform-parity breakdown.
The Sources#
GitHub: https://github.com/willhallonline/docker-devtools-aliases