mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Prettier formatted flow-typed and plugins dirs
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
const request = require('request-promise');
|
||||
|
||||
const errorCodesUrl = 'http://raw.githubusercontent.com/facebook/react/master/scripts/error-codes/codes.json';
|
||||
const errorCodesUrl =
|
||||
'http://raw.githubusercontent.com/facebook/react/master/scripts/error-codes/codes.json';
|
||||
|
||||
exports.sourceNodes = async ({ boundActionCreators }) => {
|
||||
const { createNode } = boundActionCreators;
|
||||
exports.sourceNodes = async ({boundActionCreators}) => {
|
||||
const {createNode} = boundActionCreators;
|
||||
|
||||
const jsonString = await request(errorCodesUrl);
|
||||
|
||||
@@ -16,4 +17,4 @@ exports.sourceNodes = async ({ boundActionCreators }) => {
|
||||
contentDigest: jsonString,
|
||||
},
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user