mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-23 13:07:57 +02:00
chore: tighten ESLint config (#6931)
* chore: tighten ESLint config * more refactor * refactor push * fix
This commit is contained in:
parent
f70ddf7e69
commit
cc0bceab9c
54 changed files with 177 additions and 193 deletions
|
@ -39,9 +39,7 @@ function PluginContent({
|
|||
<div>
|
||||
{Object.entries(pluginContent)
|
||||
// filter plugin instances with no content
|
||||
.filter(
|
||||
([_pluginId, pluginInstanceContent]) => !!pluginInstanceContent,
|
||||
)
|
||||
.filter(([, pluginInstanceContent]) => !!pluginInstanceContent)
|
||||
.map(([pluginId, pluginInstanceContent]) => (
|
||||
<PluginInstanceContent
|
||||
key={pluginId}
|
||||
|
@ -61,7 +59,7 @@ export default function DebugContent({allContent}: Props): JSX.Element {
|
|||
<div>
|
||||
{Object.entries(allContent)
|
||||
// filter plugins with no content
|
||||
.filter(([_pluginName, pluginContent]) =>
|
||||
.filter(([, pluginContent]) =>
|
||||
Object.values(pluginContent).some(
|
||||
(instanceContent) => !!instanceContent,
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue