mirror of https://github.com/status-im/metro.git
Upgrade Prettier to v1.12.1 on fbsource
Reviewed By: benjaffe, ryanmce, yungsters Differential Revision: D7652946 fbshipit-source-id: 396d45c675e93f2298cd2920d927630c81867447
This commit is contained in:
parent
e023342d24
commit
91568c8e5c
|
@ -35,7 +35,7 @@
|
|||
"lerna": "2.4.0",
|
||||
"micromatch": "^2.3.11",
|
||||
"mkdirp": "^0.5.1",
|
||||
"prettier": "1.9.1",
|
||||
"prettier": "1.12.1",
|
||||
"promise": "^7.1.1",
|
||||
"sinon": "^2.2.0",
|
||||
"temp": "^0.8.3"
|
||||
|
|
|
@ -899,7 +899,9 @@ class Stats {
|
|||
this.size =
|
||||
node.type === 'file'
|
||||
? node.content.length
|
||||
: node.type === 'symbolicLink' ? node.target.length : 0;
|
||||
: node.type === 'symbolicLink'
|
||||
? node.target.length
|
||||
: 0;
|
||||
this.blocks = Math.ceil(this.size / 512);
|
||||
this.atimeMs = 1;
|
||||
this.mtimeMs = 1;
|
||||
|
|
|
@ -38,9 +38,9 @@ export type FileCandidates =
|
|||
// JSON...), in which case there can be several extensions we tried, for
|
||||
// example `/js/foo.ios.js`, `/js/foo.js`, etc. for a single prefix '/js/foo'.
|
||||
| {|
|
||||
+type: 'sourceFile',
|
||||
+filePathPrefix: string,
|
||||
+candidateExts: $ReadOnlyArray<string>,
|
||||
|};
|
||||
+type: 'sourceFile',
|
||||
+filePathPrefix: string,
|
||||
+candidateExts: $ReadOnlyArray<string>,
|
||||
|};
|
||||
|
||||
export type CustomResolver = (string, string) => string;
|
||||
|
|
|
@ -15,7 +15,9 @@ const invariant = require('fbjs/lib/invariant');
|
|||
const nullthrows = require('fbjs/lib/nullthrows');
|
||||
const transformModule = require('../transform-module');
|
||||
|
||||
const {babylon: {parse}} = require('../../../babel-bridge');
|
||||
const {
|
||||
babylon: {parse},
|
||||
} = require('../../../babel-bridge');
|
||||
const {babelTypes: types} = require('../../../babel-bridge');
|
||||
const {babelGenerate: generate} = require('../../../babel-bridge');
|
||||
const {babelTraverse: traverse} = require('../../../babel-bridge');
|
||||
|
|
|
@ -1061,7 +1061,9 @@ class Server {
|
|||
const assetPlugin = urlQuery.assetPlugin;
|
||||
const assetPlugins = Array.isArray(assetPlugin)
|
||||
? assetPlugin
|
||||
: typeof assetPlugin === 'string' ? [assetPlugin] : [];
|
||||
: typeof assetPlugin === 'string'
|
||||
? [assetPlugin]
|
||||
: [];
|
||||
|
||||
const dev = this._getBoolOptionFromQuery(urlQuery, 'dev', true);
|
||||
const minify = this._getBoolOptionFromQuery(urlQuery, 'minify', false);
|
||||
|
|
|
@ -20,7 +20,9 @@ const constantFor = encoding =>
|
|||
? 1
|
||||
: isUTF8(encoding)
|
||||
? 2
|
||||
: /^(?:utf-?16(?:le)?|ucs-?2)$/.test(encoding) ? 3 : 0;
|
||||
: /^(?:utf-?16(?:le)?|ucs-?2)$/.test(encoding)
|
||||
? 3
|
||||
: 0;
|
||||
|
||||
module.exports = function(
|
||||
code: Buffer | string,
|
||||
|
|
|
@ -4978,9 +4978,9 @@ preserve@^0.2.0:
|
|||
version "0.2.0"
|
||||
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
|
||||
|
||||
prettier@1.9.1:
|
||||
version "1.9.1"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.9.1.tgz#41638a0d47c1efbd1b7d5a742aaa5548eab86d70"
|
||||
prettier@1.12.1:
|
||||
version "1.12.1"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.12.1.tgz#c1ad20e803e7749faf905a409d2367e06bbe7325"
|
||||
|
||||
pretty-format@^23.0.0-alpha.4:
|
||||
version "23.0.0-alpha.4"
|
||||
|
|
Loading…
Reference in New Issue