Prettier formatted flow-typed and plugins dirs

This commit is contained in:
Brian Vaughn
2017-10-05 08:08:22 -07:00
parent 1da83176da
commit 8d54bd01a3
3 changed files with 7 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
declare module 'hex2rgba' {
declare module.exports: (hex : string, alpha? : number) => string;
declare module.exports: (hex: string, alpha?: number) => string;
}

View File

@@ -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,
},
});
};
};

View File

@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
*/
'use strict';