The following code in expand-globs.js ignores and bypasses .prettierignore as well as prettier's --with-node-modules options, as well as a direct path to a file under a node_modules folder:
This PR takes the same approach to addressing this problem that prettier did: with the addition of a --with-node-modules flag. It appears to also "just work" with vscode integration.
I have also added additional tests for expand-globs.js.
The following code in
expand-globs.js
ignores and bypasses.prettierignore
as well asprettier
's--with-node-modules
options, as well as a direct path to a file under anode_modules
folder:This means
prettier-tslint
will skip any file in a monorepository or workspace organized to leveragenode
's module-resolution, e.g.This PR takes the same approach to addressing this problem that
prettier
did: with the addition of a--with-node-modules
flag. It appears to also "just work" with vscode integration.I have also added additional tests for
expand-globs.js
.