Clint Ayres
Clint Ayres
Ok so I think I understand the original issue; is the `===` equal to the `is()` since props/state objects are essentially javascript objects with some Immutable values. Let me think...
@tnrich it's been awhile. But I'm betting that the jscodeshift/Runner requires a path to the transform ```js const result = Runner.run(transform, roots, options); ``` `require.resolve()` -> https://nodejs.org/api/modules.html#modules_require_resolve > Use the...
@tnrich it's awesome that your moving forward with the vscode version!
Love it! Now if you can only make file drag-n-drop fire the codemod! In atom there were no good hooks besides creating a whole TreeView.
Giving it a shot now.
it looks like `require.resolve` is a no-go. It try's to resolve the file relative to the closure e.g.https://github.com/jurassix/refactoring-codemods/blob/master/src/transformers/fileHelpers/filterMatchingPaths.js#L7 . I'll hack at it from a different vector.
i added paths to see if that would help. Looking for more outs. I think I will also have to have a whitelist even with `resolve` since it defaults to...
Ok was approaching it wrong. This is closer. error: ```js FAIL src/transformers/__tests__/import-specifier-transform-test.js (1.704s) ● import-specifier-transform › it transforms correctly - Error: Cannot find module './bar' from '/Users/cayres/projects/refactoring-codemods/src/transformers/__testfixtures__' ``` code: ```js...
This seems to be a common request; _provide a way to silently validate the form._ Something like: ``` js this.props.validate({ silent: true, }); ``` However, there are many issues with...
Well after a little more thought, it would not be hard to handle the async validation. ``` js this.props.validate({ silent: true, }, (nextErrors) => { this.setState({ disableSignin: isEmpty(nextErrors), }); });...