Comments (5)
cc participants from previous discussion for awareness @robcmills @Daniel15 @lg-kialo
from jscodeshift.
There are two solutions I can think of for updated default value of extensions:
- All supported extensions, like it's done in aws/aws-sdk-js-codemod#767
- Backward compatible with <=0.15.0, as all extensions were processed anyway though
js
was default.
- Backward compatible with <=0.15.0, as all extensions were processed anyway though
- Read all extensions available in the glob, as set them as default
- Requires jscodeshift to do extra work, i.e. reading extensions of all files.
from jscodeshift.
Example fix which allows all extensions by default #583
Although this fixes the regression, it will send all files for processing by default and will have a performance impact if the folder has lot of files.
from jscodeshift.
I find folks trip over this quite often. My thinking with @hypermod/cli
was to turn on all extensions by default and parse them with the TSX parser since it's a large superset of js/jsx/ts (there are some minor caveats here in the form of generic syntax between ts and TSX, perhaps TS would have been a better way to go 😬).
from jscodeshift.
I posted a safer fix at #584, which explicitly passes supported JavaScript and TypeScript files.
from jscodeshift.
Related Issues (20)
- Easiest way to insert a comment at the beginning of a file? HOT 3
- Generics are being removed from JSX Elements HOT 5
- Unit Tests Broken? HOT 1
- Last npm release (0.15) is ~6 months old HOT 2
- how to remove empty line using jscodeshift? HOT 1
- WSL2 - Can't install project with jscodeshift in dependencies HOT 1
- Enable parsing of `accessor` keyword HOT 6
- testOptions aren't propagated through some of the test methods
- `Error: null does not match type Pattern` when scanning scope of optional catch
- Announcement: Maintenance and Future Plans HOT 12
- Npm audit throws several vulnerabilities HOT 4
- White space not being preserved when creating new jsx elements HOT 1
- Please release v1 and start using semver HOT 3
- Use corepack for managing yarn version
- Replace `chalk` dependency with a lighter alternative HOT 3
- Replace `micromatch` dependency with a lighter alternative
- Remove unused dependency `node-dir`
- Define Node.js supported version in the package.json engines field
- Replace `mkdirp` with `fs.mkdirSync(path, { recursive: true })` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jscodeshift.