Skip to content

Commit

Permalink
Upgrade eslint, babel-eslint, eslint-eslines (#24308)
Browse files Browse the repository at this point in the history
* fix by upgrading eslint babel-eslint and eslint-plugin-react
* fix lint errors for no-unused-vars
* move to [email protected]
  • Loading branch information
samouri authored and blowery committed Apr 19, 2018
1 parent 750eafc commit 6bf7757
Show file tree
Hide file tree
Showing 8 changed files with 569 additions and 393 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function handleDeleteReviewReply( { dispatch }, action ) {
dispatch( request( siteId, action, '/wp/v2' ).del( `comments/${ replyId }?force=true` ) );
}

export function announceDeleteSuccess( { dispatch, getState }, action ) {
export function announceDeleteSuccess( { dispatch }, action ) {
const { siteId, reviewId, replyId } = action;

dispatch( {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function handleReviewsRequestError( { dispatch }, action, error ) {
} );
}

export function handleChangeReviewStatus( { dispatch, getState }, action ) {
export function handleChangeReviewStatus( { dispatch }, action ) {
const { siteId, reviewId, newStatus } = action;
// @todo Update this to use reviews update endpoint when it supports status updating.
// https://github.com/woocommerce/wc-api-dev/issues/51
Expand Down
2 changes: 1 addition & 1 deletion client/state/data-layer/third-party/refer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const trackAffiliatePageLoad = ( { dispatch }, action ) => {
);
};

const trackAffiliatePageLoadSuccess = ( { dispatch }, action, rData ) => {
const trackAffiliatePageLoadSuccess = ( store, action, rData ) => {
aDebug( 'affiliate referrer request successful', rData );
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const requestRestore = action =>
action
);

export const receiveRestoreSuccess = ( { siteId, timestamp }, restoreId ) => [
export const receiveRestoreSuccess = ( { siteId }, restoreId ) => [
getRewindRestoreProgress( siteId, restoreId ),
requestRewindState( siteId ),
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { getSiteByFeedUrl } from 'state/reader/sites/selectors';
import { getSiteName } from 'reader/get-helpers';
import { bypassDataLayer } from 'state/data-layer/utils';

export function requestUnfollow( { dispatch, getState }, action ) {
export function requestUnfollow( { dispatch }, action ) {
const { payload: { feedUrl } } = action;
dispatch(
http( {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { follow, unfollow, recordFollowError } from 'state/reader/follows/action
import { subscriptionFromApi } from 'state/data-layer/wpcom/read/following/mine/utils';
import { bypassDataLayer } from 'state/data-layer/utils';

export function requestFollow( { dispatch, getState }, action ) {
export function requestFollow( { dispatch }, action ) {
const { payload: { feedUrl } } = action;

dispatch(
Expand Down
Loading

0 comments on commit 6bf7757

Please sign in to comment.