Skip to content

Commit

Permalink
chore: update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ludofischer committed May 25, 2021
1 parent 426eca3 commit 1c9d383
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"postcss-scss": "^3.0.4",
"postcss-simple-vars": "^6.0.1",
"postcss-value-parser": "^4.1.0",
"prettier": "^2.2.1",
"prettier": "^2.3.0",
"remark": "^13.0.0",
"remark-behead": "^2.2.1",
"remark-bookmarks": "^3.0.0",
Expand Down
6 changes: 2 additions & 4 deletions packages/postcss-colormin/src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import {
import plugin from '..';

const { passthroughCSS, processCSS } = processCSSFactory(plugin);
const {
processCSS: withDefaultPreset,
passthroughCSS: passthroughDefault,
} = processCSSWithPresetFactory('default');
const { processCSS: withDefaultPreset, passthroughCSS: passthroughDefault } =
processCSSWithPresetFactory('default');

test(
'should minify lowercase color values',
Expand Down
5 changes: 2 additions & 3 deletions packages/postcss-discard-empty/src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import {
import plugin from '..';

const { passthroughCSS, processor } = processCSSFactory(plugin);
const { processCSS: withDefaultPreset } = processCSSWithPresetFactory(
'default'
);
const { processCSS: withDefaultPreset } =
processCSSWithPresetFactory('default');

function testRemovals(fixture, expected, removedSelectors) {
return () =>
Expand Down
6 changes: 2 additions & 4 deletions packages/postcss-minify-font-values/src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import {
import plugin from '..';

const { passthroughCSS, processCSS } = processCSSFactory(plugin);
const {
processCSS: withDefaultPreset,
passthroughCSS: passthroughDefault,
} = processCSSWithPresetFactory('default');
const { processCSS: withDefaultPreset, passthroughCSS: passthroughDefault } =
processCSSWithPresetFactory('default');

test(
'should not unquote font names with a leading number',
Expand Down
5 changes: 3 additions & 2 deletions packages/postcss-minify-selectors/src/lib/canUnquote.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
* https://github.com/mathiasbynens/mothereff.in
*/
const escapes = /\\([0-9A-Fa-f]{1,6})[ \t\n\f\r]?/g;
// eslint-disable-next-line no-control-regex
const range = /[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;
const range =
// eslint-disable-next-line no-control-regex
/[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;

export default function canUnquote(value) {
if (value === '-' || value === '') {
Expand Down
5 changes: 2 additions & 3 deletions packages/postcss-normalize-whitespace/src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import {
import plugin from '..';

const { processCSS } = processCSSFactory(plugin);
const { processCSS: withDefaultPreset } = processCSSWithPresetFactory(
'default'
);
const { processCSS: withDefaultPreset } =
processCSSWithPresetFactory('default');

test(
'should trim whitespace from nested functions',
Expand Down
15 changes: 5 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6367,11 +6367,6 @@ lodash.merge@^4.6.2:
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==

lodash.sortby@^4.7.0:
version "4.7.0"
resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438"
integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=

lodash.template@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab"
Expand Down Expand Up @@ -7739,7 +7734,7 @@ performance-now@^2.1.0:
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=

picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.2.1, picomatch@^2.2.3:
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3:
version "2.3.0"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"
integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==
Expand Down Expand Up @@ -7942,10 +7937,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
prettier@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"
integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==

pretty-format@^27.0.1:
version "27.0.1"
Expand Down

0 comments on commit 1c9d383

Please sign in to comment.