Skip to content

Commit

Permalink
ESLint: Add new rule
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jun 28, 2024
1 parent 1ae3f47 commit 109a0bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
rules: {
'react/jsx-boolean-value': 'error',
'react/jsx-curly-brace-presence': [ 'error', { props: 'never', children: 'never' } ],
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'@wordpress/no-unsafe-wp-apis': 'off',
Expand Down
4 changes: 2 additions & 2 deletions src/source-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export default function SourceEditor( {
label={ __( 'Media query type', 'enable-responsive-image' ) }
onChange={ onChangeMediaType }
value={ mediaType || MEDIA_TYPES[ 0 ].value }
size={ '__unstable-large' }
size="__unstable-large"
>
{ MEDIA_TYPES.map( ( { label, value } ) => (
<ToggleGroupControlOption key={ value } label={ label } value={ value } />
Expand All @@ -264,7 +264,7 @@ export default function SourceEditor( {
options={ imageSizeOptions }
onChange={ onChangeResolution }
help={ __( 'Select the size of the source image.', 'enable-responsive-image' ) }
size={ '__unstable-large' }
size="__unstable-large"
/>
</>
) }
Expand Down

0 comments on commit 109a0bd

Please sign in to comment.