Browse Source

Prettier formatted flow-typed and plugins dirs

main
Brian Vaughn 7 years ago
parent
commit
8d54bd01a3
  1. 2
      flow-typed/hex2rgba.js
  2. 9
      plugins/gatsby-source-react-error-codes/gatsby-node.js
  3. 2
      src/components/Container/Container.js

2
flow-typed/hex2rgba.js

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

9
plugins/gatsby-source-react-error-codes/gatsby-node.js

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

2
src/components/Container/Container.js

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

Loading…
Cancel
Save