xwp / wp-dev-lib

DEPRECATED. Common code used during development of WordPress plugins and themes
MIT License
279 stars 58 forks source link

Temporary directory causes issues when Eslint rule import/no-unresolved is used #316

Open adekbadek opened 4 years ago

adekbadek commented 4 years ago

This lib creates a tmp directory with changed files only, in order to lint them. However this causes issues when using Eslint rule import/no-unresolved. When a changed file (changed line, to be precise) imports another file, which was not changed (not incl. in the git diff), this rule check will fail. The solution can be to copy the whole codebase into the tmp directory, not just the changed files.