Skip to content

Commit 2860e89

Browse files
Bump prettier from 1.19.1 to 2.0.5 (#138)
* Bump prettier from 1.19.1 to 2.0.5 Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.5. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](prettier/prettier@1.19.1...2.0.5) Signed-off-by: dependabot-preview[bot] <[email protected]> * Fix Prettier errors Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Nicolas Charpentier <[email protected]>
1 parent 8904b25 commit 2860e89

File tree

7 files changed

+12
-17
lines changed

7 files changed

+12
-17
lines changed

__tests__/auto-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
describe('Auto', function() {
1+
describe('Auto', function () {
22
it('should import polyfills and apply them automatically', () => {
33
expect(global.REACT_NATIVE_URL_POLYFILL).toBeUndefined();
44

__tests__/index-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jest.mock('react-native/Libraries/Utilities/PolyfillFunctions', () => ({
44
polyfillGlobal: jest.fn(),
55
}));
66

7-
describe('Index', function() {
7+
describe('Index', function () {
88
it('should apply Buffer polyfill', () => {
99
require('../index');
1010

js/__tests__/URL-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {URL} from '../URL';
22

3-
describe('URL', function() {
3+
describe('URL', function () {
44
it('should pass Mozilla Dev Network examples', () => {
55
const a = new URL('/', 'https://developer.mozilla.org');
66
expect(a.href).toBe('https://developer.mozilla.org/');

js/__tests__/URLSearchParams-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {URLSearchParams} from '../URLSearchParams';
22

3-
describe('URL', function() {
3+
describe('URL', function () {
44
// https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams#Examples
55
it('should pass Mozilla Dev Network examples', () => {
66
const paramsString = 'q=URLUtils.searchParams&topic=api';

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"metro-react-native-babel-preset": "^0.59.0",
4444
"ora": "^4.0.4",
4545
"prepend-file": "^1.3.1",
46-
"prettier": "^1.19.1",
46+
"prettier": "^2.0.5",
4747
"react": "16.11.0",
4848
"react-native": "0.62.2",
4949
"rmfr": "^2.0.0",

scripts/bundle-size.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async function generateSourceMapExplorer(
8383
`${tempProjectDirectory}/index.js`,
8484
`import 'react-native-url-polyfill';
8585
`,
86-
err => {
86+
(err) => {
8787
if (err) {
8888
reject(err);
8989
}
@@ -105,7 +105,7 @@ async function generateSourceMapExplorer(
105105
await action(
106106
'Comparing size of bundles',
107107
new Promise(async (resolve, reject) => {
108-
const originalSize = await new Promise(statsResolve =>
108+
const originalSize = await new Promise((statsResolve) =>
109109
fs.stat(
110110
`${tempProjectDirectory}/original.jsbundle`,
111111
[],
@@ -119,7 +119,7 @@ async function generateSourceMapExplorer(
119119
),
120120
);
121121

122-
const polyfillSize = await new Promise(statsResolve =>
122+
const polyfillSize = await new Promise((statsResolve) =>
123123
fs.stat(
124124
`${tempProjectDirectory}/withURLPolyfill.jsbundle`,
125125
[],

yarn.lock

+4-9
Original file line numberDiff line numberDiff line change
@@ -6206,15 +6206,10 @@ prettier-linter-helpers@^1.0.0:
62066206
dependencies:
62076207
fast-diff "^1.1.2"
62086208

6209-
prettier@^1.19.1:
6210-
version "1.19.1"
6211-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
6212-
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
6213-
6214-
prettier@^2.0.2:
6215-
version "2.0.2"
6216-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.2.tgz#1ba8f3eb92231e769b7fcd7cb73ae1b6b74ade08"
6217-
integrity sha512-5xJQIPT8BraI7ZnaDwSbu5zLrB6vvi8hVV58yHQ+QK64qrY40dULy0HSRlQ2/2IdzeBpjhDkqdcFBnFeDEMVdg==
6209+
prettier@^2.0.2, prettier@^2.0.5:
6210+
version "2.0.5"
6211+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
6212+
integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==
62186213

62196214
pretty-format@^24.7.0, pretty-format@^24.9.0:
62206215
version "24.9.0"

0 commit comments

Comments
 (0)