Skip to content

Commit

Permalink
prep build 06/15
Browse files Browse the repository at this point in the history
  • Loading branch information
bph committed Jun 15, 2022
2 parents a61a583 + a8c8b14 commit f4883eb
Show file tree
Hide file tree
Showing 659 changed files with 7,753 additions and 8,130 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,15 @@ module.exports = {
name: 'lodash',
importNames: [
'concat',
'defaultTo',
'differenceWith',
'dropRight',
'each',
'findIndex',
'isArray',
'isFinite',
'isFunction',
'isObjectLike',
'isUndefined',
'memoize',
'negate',
Expand All @@ -95,6 +99,8 @@ module.exports = {
'stubTrue',
'sum',
'sumBy',
'take',
'trim',
],
message:
'This Lodash method is not recommended. Please use native functionality instead. If using `memoize`, please use `memize` instead.',
Expand Down
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

# ESLint updates.
f63053cace3c02e284f00918e1854284c85b9132

# Prettier upgrade to 2.6.2.
33d84b036592a5bf31af05b7710f3b2b14163dc4
7 changes: 4 additions & 3 deletions bin/check-latest-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,16 @@ async function getLatestNPMVersion() {
/** @type {NodeJS.ErrnoException} */ ( error ).code ===
'ENOTFOUND'
) {
error = new Error( `Could not contact the npm registry to determine latest version.
error =
new Error( `Could not contact the npm registry to determine latest version.
This could be due to an intermittent outage of the service, or because you are not connected to the internet.
Because it is important that \`package-lock.json\` files only be committed while running the latest version of npm, this commit has been blocked.
If you are certain of your changes and desire to commit anyways, you should either connect to the internet or bypass commit verification using ${ yellow(
'git commit --no-verify'
) } .` );
'git commit --no-verify'
) } .` );
}

reject( error );
Expand Down
12 changes: 6 additions & 6 deletions bin/packages/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ function isFileImportedInStyleEntry( file, importStatements ) {
function findStyleEntriesThatImportFile( file ) {
const entriesWithImport = stylesheetEntryPoints.reduce(
( acc, entryPoint ) => {
const styleEntryImportStatements = parseImportStatements(
entryPoint
);
const styleEntryImportStatements =
parseImportStatements( entryPoint );

if (
isFileImportedInStyleEntry( file, styleEntryImportStatements )
Expand Down Expand Up @@ -161,9 +160,10 @@ function createBlockJsonEntryTransform() {
return new Transform( {
objectMode: true,
async transform( file, encoding, callback ) {
const matches = /block-library[\/\\]src[\/\\](.*)[\/\\]block.json$/.exec(
file
);
const matches =
/block-library[\/\\]src[\/\\](.*)[\/\\]block.json$/.exec(
file
);
const blockName = matches ? matches[ 1 ] : undefined;

// Only block.json files in the block-library folder are subject to this transform.
Expand Down
4 changes: 2 additions & 2 deletions bin/packages/validate-typescript-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const tscDetectedVersion = require( 'typescript' ).version;
/**
* Internal dependencies
*/
const tscDependencyVersion = require( '../../package.json' ).devDependencies
.typescript;
const tscDependencyVersion =
require( '../../package.json' ).devDependencies.typescript;

if ( tscDependencyVersion !== tscDetectedVersion ) {
console.error(
Expand Down
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ Displays the next or previous post link that is adjacent to the current post. ([

- **Name:** core/post-navigation-link
- **Category:** theme
- **Supports:** typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Supports:** color (background, link, text), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:** label, linkLabel, showTitle, textAlign, type

## Post Template
Expand Down
Loading

0 comments on commit f4883eb

Please sign in to comment.