Skip to content

Commit

Permalink
Fixed lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed May 13, 2024
1 parent cee5c5c commit ec9b919
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/ckeditor5-code-block/src/codeblockediting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default class CodeBlockEditing extends Plugin {
} );

// Disallow all attributes on `$text` inside `codeBlock`.
schema.addAttributeCheck( ( context ) => {
schema.addAttributeCheck( context => {
if ( context.endsWith( 'codeBlock $text' ) ) {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/ckeditor5-engine/tests/model/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -3196,7 +3196,7 @@ describe( 'Schema', () => {

it( 'own allowIn rule has bigger priority than inherited (re-allow)', () => {
schema.register( 'baseParent' );
schema.register( 'baseChild', { allowIn: 'baseParent' } );
schema.register( 'baseChild', { allowIn: 'baseParent' } );
schema.register( 'extendedChild', { inheritAllFrom: 'baseChild', disallowIn: 'baseParent' } );
schema.register( 'extendedChild2', { inheritAllFrom: 'extendedChild', allowIn: 'baseParent' } );
schema.register( 'extendedChild3', { inheritAllFrom: 'extendedChild2' } ); // Re-allow is inherited.
Expand All @@ -3209,7 +3209,7 @@ describe( 'Schema', () => {

it( 'own allowChildren rule has bigger priority than inherited (re-allow)', () => {
schema.register( 'baseParent' );
schema.register( 'baseChild', { allowIn: 'baseParent' } );
schema.register( 'baseChild', { allowIn: 'baseParent' } );
schema.register( 'extendedParent', { inheritAllFrom: 'baseParent', disallowChildren: [ 'baseChild' ] } );
schema.register( 'extendedParent2', { inheritAllFrom: 'extendedParent', allowChildren: [ 'baseChild' ] } );
schema.register( 'extendedParent3', { inheritAllFrom: 'extendedParent2' } ); // Re-allow is inherited.
Expand Down

0 comments on commit ec9b919

Please sign in to comment.