dense-analysis / dense-analysis/ale

Automatically detect and use Docker if prefered

Open
#3,947 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Vim Script
Stars
14k
Forks
1.5k
Avg merge
17h 49m
Merged PRs (30d)
1

Description

I'm often using ESLint for linting my JavaScript files.

Of course ALE will use the system's binary for `node` when linting files I guess like `/usr/bin/node ./node_modules/.bin/eslint file.js`.

Which is great because it automatically uses the system's binary.

But it would be even cooler for Docker users to just use Docker instead of the system binary (with an option) like

```vim
let g:ale_prefer_docker=1
```

```console
docker run --interactive --tty --volume "$PWD:/home/node/sources" --workdir /home/node/sources --user node node:16.0.0 ./node_modules/.bin/eslint file.js
```

And fallback to the system's binary if docker is either not installed or is not usable with maybe a possibility to customize the command used to run docker and stuff. What do you think? What could be improved on that idea?

This would be awesome for people that have Docker, but not necessarily the binary for linting their files like someone that is just getting started on Haskell but has only Docker installed and does not want to install Haskell on the system yet (or prefers using Docker for development instead of installing system binaries).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.