Skip to content

Commit

Permalink
Fix new lint errors & warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed May 30, 2023
1 parent b4bd409 commit d0f7743
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@
}],
"jsdoc/require-returns": "error",
"jsdoc/require-param-description": "error",
"jsdoc/tag-lines": [
"error",
"any",
{ "startLines": 1 }
],
"jsdoc/valid-types": "error",
"eslint-comments/no-unused-disable": "error",
"eslint-comments/require-description": "error",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { LOCAL_MEDIA_TYPE_ALL } from './types';

/**
* Context fragment provider for local media.
* This is called from {@link MediaProvider} to provide the media global state.
* This is called from MediaProvider to provide the media global state.
*
* @param {LocalMediaReducerState} reducerState The 'local' fragment of the
* state returned from `useMediaReducer`
Expand Down
4 changes: 2 additions & 2 deletions packages/story-editor/src/app/media/media3p/api/apiFetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const Paths = {
};

/**
* The supported order_by values for {@link listMedia}.
* The supported order_by values for listMedia.
*
* @enum {string}
*/
Expand All @@ -39,7 +39,7 @@ const ListMediaOrderBy = {
};

/**
* The supported order_by values for {@link listCategories}.
* The supported order_by values for listCategories.
*
* @enum {string}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function useProviderSetContextValueProvider(reducerState, reducerActions) {

/**
* Context fragment provider for 3rd party media (Unsplash, Coverr, etc).
* This is called from {@link MediaProvider} to provide the media global state.
* This is called from MediaProvider to provide the media global state.
*
* @param {Media3pReducerState} reducerState The 'media3p'
* fragment of the state returned from `useMediaReducer`
Expand Down
4 changes: 2 additions & 2 deletions packages/story-editor/src/app/media/useMedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import Context from './context';
*/

/**
* Context value consumer to select a fragment of the enire media context value
* (local and media3p) that's provided from {@link MediaProvider}.
* Context value consumer to select a fragment of the entire media context value
* (local and media3p) that's provided from MediaProvider.
*
* @param {function(MediaContext):Object?} selector Returns a fragment of the
* media context value that the caller is interested in. If no selector is
Expand Down
1 change: 0 additions & 1 deletion packages/story-editor/src/app/media/utils/useFFmpeg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ function useFFmpeg() {
/**
* Whether the video optimization feature is enabled.
*
*
* @type {boolean} Whether the feature flag is enabled.
*/
const isCrossOriginIsolationEnabled = Boolean(window?.crossOriginIsolated);
Expand Down

0 comments on commit d0f7743

Please sign in to comment.