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.
12 lines
302 B
JavaScript
12 lines
302 B
JavaScript
// @no-flow
|
|
const path = require("path");
|
|
|
|
// This is a custom Jest transformer turning file imports into filenames.
|
|
// http://facebook.github.io/jest/docs/en/webpack.html
|
|
|
|
module.exports = {
|
|
process(src, filename) {
|
|
return `module.exports = ${JSON.stringify(path.basename(filename))};`;
|
|
},
|
|
};
|