Last 12 weeks · 8 commits
4 of 6 standards met
Fixes #342 Problem When an ignore config (e.g. passed via ) contains a gitignore negation pattern (a line starting with , such as or ), jscodeshift ends up ignoring every file. Root cause: in pushes the -prefixed pattern (and its expansion) directly into the picomatch matcher list. picomatch interprets a leading as a glob negation that inverts the whole match set, so returns for all paths. Fix Parse the leading in and route negation patterns to a separate list (with the stripped). first checks the ignore patterns, then only applies negation patterns to re-include paths that match them. A bare negation pattern now has no effect instead of ignoring all files. Verification Added regression tests in covering: bare negation pattern no longer ignores everything, negation re-includes files matched by a prior ignore pattern, and negation works with a leading traversal prefix. → 9/9 pass. Note: the wider run on Windows shows pre-existing failures in template/ts-decorator/core tests caused by CRLF line endings (unrelated to this change; none of those suites import ).
How do I get a hold of the collection for and and decorator calls in this example? https://astexplorer.net/#/gist/96fa2a58a3c859d61278839d7b897f8f/acf963ec5bd8c96799d87bf4f8ccf6504c24c6d6 I have tried I want to find them and only them so I can remove those lines of code with . My config looks like this:
Repository: facebook/jscodeshift. Description: A JavaScript codemod toolkit. Stars: 10034, Forks: 498. Primary language: JavaScript. Languages: JavaScript (96.9%), MDX (2.9%), TypeScript (0.2%). License: MIT. Homepage: https://jscodeshift.com Latest release: v17.3.0 (1y ago). Open PRs: 29, open issues: 122. Last activity: 2w ago. Community health: 75%. Top contributors: fkling, dependabot[bot], cpojer, Daniel15, ElonVolo, trivikr, gkz, jbrown215, marcodejongh, sharils and others.