You shouldn't be linting third party code to begin with.
True, but for that I'd need to constantly ignore files from my linter.. Also not an ideal solution.
To clarify this happens more for sass or css projects where variables need to be set according to the base library and linters go nuts over them.
Linting is a great idea in theory but in practice there are way too many 'correct' approaches to writing code.