Reorganize the structure of block-validation
directory
#6022
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
The two entry points:
block-validation
andblock-editor
are both used in the context of the block editor. Potentially they could share the same entry point so that code re-usability would be better.This is the first step of the process. With this PR the directory structure of the
block-validation
is more organized and matches the structure of theblock-editor
folder.This change will also allow us to cleanly migrate the
amp-toggle
plugin fromblock-editor
toblock-validation
. With #5997, the plugin would logically belong better toblock-validation
since it renders AMP status notification that in turn is based on the AMP validation results.Relates to #5997
Checklist