-
My eslint config uses a private package. I use .yarnc.yml to set the npmAuthToken needed to fetch the package. The megalinter throws an error in the eslint config because it can't find the package. How do I fix it? Do I need a .npmrc file and a custom command to run before the linter? |
Beta Was this translation helpful? Give feedback.
Answered by
nvuillam
Oct 30, 2022
Replies: 1 comment 4 replies
-
I've never played with npm private packages, but I suppose you can manage its installation using PRE_COMMANDS https://oxsecurity.github.io/megalinter/latest/configuration/#pre-commands |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
bryanjtc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've never played with npm private packages, but I suppose you can manage its installation using PRE_COMMANDS
https://oxsecurity.github.io/megalinter/latest/configuration/#pre-commands