Answer the question
In order to leave comments, you need to log in
How to make Eslint work without installing a package?
Eslint is not in devDependencies in the project's package.json, but there is a script that launches a docker container, inside which the project directory is mounted (node_modules is already in the container before mounting) and inside which lint is launched.
"scripts": {
"lint": docker run --rm -it -v $(pwd):/container/myFolder myContainer sh -c 'cd myFolder/ && /container/node_modules/eslint/bin/eslint.js'
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question