wp-dev-lib icon indicating copy to clipboard operation
wp-dev-lib copied to clipboard

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

Open adekbadek opened this issue 5 years ago • 0 comments

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.

adekbadek avatar Feb 10 '20 15:02 adekbadek