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. 7
      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 'hex2rgba' {
declare module.exports: (hex : string, alpha? : number) => string; declare module.exports: (hex: string, alpha?: number) => string;
} }

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

@ -1,9 +1,10 @@
const request = require('request-promise'); 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 }) => { exports.sourceNodes = async ({boundActionCreators}) => {
const { createNode } = boundActionCreators; const {createNode} = boundActionCreators;
const jsonString = await request(errorCodesUrl); const jsonString = await request(errorCodesUrl);

2
src/components/Container/Container.js

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

Loading…
Cancel
Save