mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
Prettier formatted flow-typed and plugins dirs
This commit is contained in:
2
flow-typed/hex2rgba.js
vendored
2
flow-typed/hex2rgba.js
vendored
@@ -1,3 +1,3 @@
|
||||
declare module 'hex2rgba' {
|
||||
declare module.exports: (hex : string, alpha? : number) => string;
|
||||
declare module.exports: (hex: string, alpha?: number) => string;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @emails react-core
|
||||
*/
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user