Skip to content

Commit

Permalink
Disable entities rule inline.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniGuardiola committed May 28, 2024
1 parent 0627c45 commit c3922be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ module.exports = {
'error',
{ props: 'never', children: 'never' },
],
'react/no-unescaped-entities': 'off',
'@wordpress/dependency-group': 'error',
'@wordpress/wp-global-usage': 'error',
'@wordpress/react-no-unsafe-timeout': 'error',
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/animate/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ Default.args = {
children: ( { className } ) => (
<Notice className={ className } status="success">
<p>
{ /* eslint-disable react/no-unescaped-entities */ }
No default animation. Use one of type = "appear", "slide-in", or
"loading".
{ /* eslint-enable react/no-unescaped-entities */ }
</p>
</Notice>
),
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/dropdown/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ WithMorePadding.args = {
...Default.args,
renderContent: () => (
<DropdownContentWrapper paddingSize="medium">
{ /* eslint-disable react/no-unescaped-entities */ }
Content wrapped with <code>paddingSize="medium"</code>.
{ /* eslint-enable react/no-unescaped-entities */ }
</DropdownContentWrapper>
),
};
Expand All @@ -81,7 +83,9 @@ WithNoPadding.args = {
...Default.args,
renderContent: () => (
<DropdownContentWrapper paddingSize="none">
{ /* eslint-disable react/no-unescaped-entities */ }
Content wrapped with <code>paddingSize="none"</code>.
{ /* eslint-enable react/no-unescaped-entities */ }
</DropdownContentWrapper>
),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ Default.args = {
},
children: (
<div>
{ /* eslint-disable react/no-unescaped-entities */ }
<p>Hit the "a" or "b" key in this textarea:</p>
{ /* eslint-enable react/no-unescaped-entities */ }
<textarea />
</div>
),
Expand Down

0 comments on commit c3922be

Please sign in to comment.