mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-10 20:56:29 +00:00
93e2798f37
This script ensures that either //@flow or //@no-flow is present in every js file. Every existing js file that would fail this check has been given //@no-flow, we should work to remove all of these in the future. Test plan: I verified that `yarn travis` fails before fixing the other js files, and passes afterwards.
14 lines
311 B
JavaScript
14 lines
311 B
JavaScript
// @no-flow
|
|
// This is a custom Jest transformer turning style imports into empty objects.
|
|
// http://facebook.github.io/jest/docs/en/webpack.html
|
|
|
|
module.exports = {
|
|
process() {
|
|
return "module.exports = {};";
|
|
},
|
|
getCacheKey() {
|
|
// The output is always the same.
|
|
return "cssTransform";
|
|
},
|
|
};
|