Skip to content

Commit

Permalink
Remove empty lines left by the autofixer
Browse files Browse the repository at this point in the history
  • Loading branch information
diedexx committed Dec 16, 2024
1 parent 49c0bf3 commit 39fbcbd
Show file tree
Hide file tree
Showing 69 changed files with 0 additions and 116 deletions.
1 change: 0 additions & 1 deletion packages/js/src/academy/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { ExternalLinkIcon, LockOpenIcon } from "@heroicons/react/outline";
import { ArrowSmRightIcon } from "@heroicons/react/solid";
import { useMemo } from "@wordpress/element";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { useDispatch, useSelect } from "@wordpress/data";
import { useMemo } from "@wordpress/element";
import { AiFixAssessmentsUpsell } from "../../shared-admin/components";
Expand Down
2 changes: 0 additions & 2 deletions packages/js/src/block-editor.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

import initBlockEditorIntegration from "./initializers/block-editor-integration";
import BlockEditorData from "./analysis/blockEditorData";

window.yoast = window.yoast || {};
window.yoast.initEditorIntegration = initBlockEditorIntegration;
window.yoast.EditorData = BlockEditorData;

1 change: 0 additions & 1 deletion packages/js/src/bulk-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import jQuery from "jquery";

var data = {
action: saveAllMethod,

_ajax_nonce: wpseoBulkEditorNonce,
};

Expand Down
2 changes: 0 additions & 2 deletions packages/js/src/classic-editor.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

import initClassicEditorIntegration from "./initializers/classic-editor-integration";
import ClassicEditorData from "./analysis/classicEditorData";

window.yoast = window.yoast || {};
window.yoast.initEditorIntegration = initClassicEditorIntegration;
window.yoast.EditorData = ClassicEditorData;

Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ const InclusiveLanguageAnalysis = ( props ) => {
InclusiveLanguageAnalysis.propTypes = {
results: PropTypes.array,
// `marksButtonStatus` is used, but not recognized by ESLint.

marksButtonStatus: PropTypes.oneOf( [ "enabled", "disabled", "hidden" ] ).isRequired,
overallScore: PropTypes.number,
shouldUpsellHighlighting: PropTypes.bool,
Expand Down
2 changes: 0 additions & 2 deletions packages/js/src/containers/PluginIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default compose( [
const readabilityScoreIndicator = getIndicatorForScore( data.getReadabilityResults().overallScore );
const { isKeywordAnalysisActive, isContentAnalysisActive } = data.getPreferences();


let readabilityScoreColor;
switch ( readabilityScoreIndicator.className ) {
case "good":
Expand All @@ -26,7 +25,6 @@ export default compose( [
break;
}


let seoScoreColor;
switch ( seoScoreIndicator.className ) {
case "good":
Expand Down
2 changes: 0 additions & 2 deletions packages/js/src/elementor/containers/ElementorFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { compose } from "@wordpress/compose";
import { withDispatch, withSelect } from "@wordpress/data";
import ElementorFill from "../components/fills/ElementorFill";


export default compose( [
withSelect( select => {
const {
Expand All @@ -23,4 +22,3 @@ export default compose( [
};
} ),
] )( ElementorFill );

2 changes: 0 additions & 2 deletions packages/js/src/filter-explanation.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* global yoastFilterExplanation */

( function( $ ) {
$( "#posts-filter .tablenav.top" ).after(
`<div class="notice notice-info inline wpseo-filter-explanation"><p class="dashicons-before dashicons-lightbulb">${ yoastFilterExplanation.text }</p></div>`
);
}( jQuery ) );

Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ function calculateInitialState( windowObject, isStepFinished ) {
};
}


/* eslint-disable max-statements */
/**
* The first time configuration.
Expand Down Expand Up @@ -400,7 +399,6 @@ export default function FirstTimeConfigurationSteps() {
setShowEditButton( stepperFinishedOnce && ! isStepBeingEdited );
}, [ stepperFinishedOnce, isStepBeingEdited ] );


useEffect( () => {
/**
* Prevents the submission of the form upon pressing enter.
Expand Down Expand Up @@ -585,7 +583,6 @@ export default function FirstTimeConfigurationSteps() {
);
}


/* eslint-enable complexity */
/* eslint-enable react/jsx-no-bind */
/* eslint-enable max-statements */
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import classNames from "classnames";
import PropTypes from "prop-types";
import { useCallback } from "@wordpress/element";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import PropTypes from "prop-types";
import { stepperTimingClasses } from "../stepper-helper";
import { useStepperContext } from "./stepper";


const { slideDuration, delayUntilStepFaded } = stepperTimingClasses;
const commonCircleClasses = `yst-transition-opacity ${ slideDuration } yst-absolute yst-inset-0 yst-border-2 yst-flex yst-items-center yst-justify-center yst-rounded-full`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { useEffect, useState } from "@wordpress/element";
import { stepperTimings } from "../stepper-helper";
import { useStepperContext } from "./stepper";


/**
* Gets the classnames for the step name.
*
Expand All @@ -21,7 +20,6 @@ function getNameClassNames( isFinished, isActiveStep, isLastStep ) {
return isFinished ? "yst-text-slate-900" : "yst-text-slate-600";
}


/**
* The Step header component.
*
Expand Down Expand Up @@ -85,5 +83,3 @@ StepHeader.defaultProps = {
description: "",
children: [],
};


Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { stepperTimings, stepperTimingClasses } from "../stepper-helper";
import StepHeader from "./step-header";
import { FadeInAlert } from "../tailwind-components/base/alert";


const {
slideDuration,
delayBeforeOpening,
Expand Down Expand Up @@ -274,4 +273,3 @@ Step.Error = StepError;
Step.Header = StepHeader;
Step.GoButton = GoButton;
Step.EditButton = EditButton;

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import PropTypes from "prop-types";
import SocialFieldArray from "./social-field-array";
import SocialInput from "./social-input";


/**
* A wrapper that combines all the SocialInputs. Intended for use in the first time configuration.
*
Expand Down Expand Up @@ -55,7 +54,6 @@ export default function SocialInputSectionContainer( { socialProfiles, errorFiel
);
}


SocialInputSectionContainer.propTypes = {
socialProfiles: PropTypes.object.isRequired,
dispatch: PropTypes.func.isRequired,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import PropTypes from "prop-types";
import SocialInputSection from "./social-input-section";
import Alert from "../../base/alert";


/**
* Social profiles step component
*
Expand Down
2 changes: 0 additions & 2 deletions packages/js/src/general/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


import { Transition } from "@headlessui/react";
import { AdjustmentsIcon, BellIcon, ChartPieIcon } from "@heroicons/react/outline";
import { useDispatch, useSelect } from "@wordpress/data";
Expand Down
3 changes: 0 additions & 3 deletions packages/js/src/initializers/admin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* global ajaxurl */

import { __ } from "@wordpress/i18n";
import { debounce } from "lodash";

Expand Down Expand Up @@ -216,10 +215,8 @@ export default function initAdmin( jQuery ) {

window.setWPOption = setWPOption;
window.wpseoCopyHomeMeta = wpseoCopyHomeMeta;

window.wpseoSetTabHash = wpseoSetTabHash;


jQuery( document ).ready( function() {
/**
* When the hash changes, get the base url from the action and then add the current hash.
Expand Down
2 changes: 0 additions & 2 deletions packages/js/src/integrations-page/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export const getIsFreeIntegrationOrPremiumAvailable = ( integration ) => {
return ( integration.isPremium && isPremiumInstalled ) || ! integration.isPremium;
};


/**
* Checks the conditions for which a card is active
*
Expand All @@ -81,7 +80,6 @@ export const getIsCardActive = ( integration, activeState ) => {
return networkControlEnabled && multisiteAvailable;
};


/**
* Updates an integration state.
*
Expand Down
2 changes: 0 additions & 2 deletions packages/js/src/integrations-page/mastodon-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { PropTypes } from "prop-types";
import { Fragment } from "@wordpress/element";
import { SimpleIntegration } from "./simple-integration";


/**
* Represents the Mastodon integration.
*
Expand Down Expand Up @@ -39,7 +38,6 @@ export const MastodonIntegration = ( { integration, isActive } ) => {
);
};


MastodonIntegration.propTypes = {
integration: PropTypes.shape( {
name: PropTypes.string,
Expand Down
2 changes: 0 additions & 2 deletions packages/js/src/integrations-page/plugin-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { PropTypes } from "prop-types";
import { Fragment } from "@wordpress/element";
import { SimpleIntegration } from "./simple-integration";


/**
* Represents an integration.
*
Expand Down Expand Up @@ -39,7 +38,6 @@ export const PluginIntegration = ( { integration, isActive } ) => {
);
};


PluginIntegration.propTypes = {
integration: PropTypes.shape( {
name: PropTypes.string,
Expand Down
1 change: 0 additions & 1 deletion packages/js/src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import initSettingsHeader from "./initializers/settings-header";

initAdmin( jQuery );


if ( wpseoScriptData ) {
if ( typeof wpseoScriptData.dismissedAlerts !== "undefined" ) {
initSettingsStore();
Expand Down
1 change: 0 additions & 1 deletion packages/js/src/settings/components/form-layout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { useCallback, useMemo } from "@wordpress/element";
import { __ } from "@wordpress/i18n";
import { Button, useToggleState } from "@yoast/ui-library";
Expand Down
1 change: 0 additions & 1 deletion packages/js/src/settings/components/notifications.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { useEffect, useMemo } from "@wordpress/element";
import { __ } from "@wordpress/i18n";
import { Notifications as NotificationsUi } from "@yoast/ui-library";
Expand Down
1 change: 0 additions & 1 deletion packages/js/src/settings/routes/site-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ const LearnMoreLink = ( { id, link, ariaLabel, ...props } ) => {
const href = useSelectSettings( "selectLink", [ link ], link );

return (

<Link
id={ id }
href={ href }
Expand Down
1 change: 0 additions & 1 deletion packages/js/src/settings/routes/site-representation.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const FormikDummyAutocompleteField = withFormikDummySelectField( FormikAutocompl
*/
const SiteRepresentation = () => {
const { values } = useFormikContext();

const {
website_name: websiteName,
company_or_person: companyOrPerson,
Expand Down
1 change: 0 additions & 1 deletion packages/js/src/settings/store/search.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { createSelector, createSlice } from "@reduxjs/toolkit";
import { get, reduce, join, filter, isArray } from "lodash";
import { preferencesSelectors } from "./preferences";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const AiFixAssessmentsUpsell = ( {
const { onClose, initialFocus } = useModalContext();

const learnMoreLinkStructure = {

a: <OutboundLink
href={ learnMoreLink }
className="yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const AiGenerateTitlesAndDescriptionsUpsell = ( {
const { onClose, initialFocus } = useModalContext();

const learnMoreLinkStructure = {

a: <OutboundLink
href={ learnMoreLink }
className="yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium"
Expand Down
1 change: 0 additions & 1 deletion packages/js/tests/blockEditorData.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ global.jQuery = {};

import BlockEditorData from "../src/analysis/blockEditorData.js";


const refresh = () => {
return true;
};
Expand Down
1 change: 0 additions & 1 deletion packages/js/tests/helpers/factory.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Make sure the Jed object is globally available
const Jed = require( "jed" );


const FactoryProto = function() {};

FactoryProto.prototype.buildJed = function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ describe( "wistiaEmbedPermission", () => {
// Falsy with different types.
[ false, "" ],
[ false, null ],

[ false, undefined ],
] )( "returns the value %p when the input value is %p", ( expected, input ) => {
expect( wistiaEmbedPermissionReducer( {}, wistiaEmbedPermissionActions.setWistiaEmbedPermissionValue( input ) ) )
Expand Down Expand Up @@ -139,7 +138,6 @@ describe( "wistiaEmbedPermission", () => {
// Falsy with different types.
[ false, { value: "" } ],
[ false, { value: null } ],

[ false, { value: undefined } ],
// The above, but without the object with value key.
[ false, true ],
Expand All @@ -150,7 +148,6 @@ describe( "wistiaEmbedPermission", () => {
[ false, Object ],
[ false, "" ],
[ false, null ],

[ false, undefined ],
] )( "returns the value %p when the input value is %p", ( expected, input ) => {
expect( wistiaEmbedPermissionReducer( {}, {
Expand All @@ -174,7 +171,6 @@ describe( "wistiaEmbedPermission", () => {
// Falsy with different types.
[ false, { value: "" } ],
[ false, { value: null } ],

[ false, { value: undefined } ],
// The above, but without the object with value key.
[ false, true ],
Expand All @@ -185,7 +181,6 @@ describe( "wistiaEmbedPermission", () => {
[ false, Object ],
[ false, "" ],
[ false, null ],

[ false, undefined ],
] )( "returns the value %p when the input value is %p", ( expectedValue, inputValue ) => {
expect( wistiaEmbedPermissionReducer( {}, {
Expand Down Expand Up @@ -321,7 +316,6 @@ describe( "wistiaEmbedPermission", () => {
// Falsy with different types.
[ false, { payload: "" } ],
[ false, { payload: null } ],

[ false, { payload: undefined } ],
// The above, but without the object with payload key.
[ false, true ],
Expand All @@ -342,7 +336,6 @@ describe( "wistiaEmbedPermission", () => {

test.each( [
[ null ],

[ undefined ],
] )( "throws a TypeError when passing %p", async( input ) => {
expect.assertions( 2 );
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/local/bin/node

const fs = require( "fs" );
const path = require( "path" );
const { execSync } = require( "child_process" );
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// External dependencies.
import React from "react";
import Editor from "@draft-js-plugins/editor";
Expand Down Expand Up @@ -52,7 +51,6 @@ const MentionSuggestionsStyleWrapper = styled.div`
`;

// Regex sources from https://github.com/facebook/draft-js/issues/1105

const emojiRegExp = new RegExp( "(?:\\p{RI}\\p{RI}|\\p{Emoji}(?:\\p{Emoji_Modifier}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(?:\\u{200D}\\p{Emoji}(?:\\p{Emoji_Modifier}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*)", "gu" );

/**
Expand Down
Loading

0 comments on commit 39fbcbd

Please sign in to comment.