Skip to content

Commit

Permalink
Code quality: Remove overrides for JSDoc rules downgraded to warnings (
Browse files Browse the repository at this point in the history
…#27879)

Closes #22907.
  • Loading branch information
gziolo authored Dec 28, 2020
1 parent f950703 commit 4254bf1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ module.exports = {
'Avoid truthy checks on length property rendering, as zero length is rendered verbatim.',
},
],
// Temporarily converted to warning until all errors are resolved.
// See https://github.com/WordPress/gutenberg/pull/22771 for the eslint-plugin-jsdoc update.
'jsdoc/check-param-names': 'warn',
'jsdoc/require-param': 'warn',
},
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion bin/plugin/commands/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ async function runTestSuite( testSuite, performanceTestDirectory ) {
/**
* Runs the performances tests on an array of branches and output the result.
*
* @param {WPPerformanceCommandOptions} options Command options.
* @param {string[]} branches Branches to compare
* @param {WPPerformanceCommandOptions} options Command options.
*/
async function runPerformanceTests( branches, options ) {
// The default value doesn't work because commander provides an array.
Expand Down
7 changes: 0 additions & 7 deletions packages/block-editor/src/autocompleters/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,11 @@ import BlockIcon from '../components/block-icon';

const SHOWN_BLOCK_TYPES = 9;

/** @typedef {import('@wordpress/block-editor').WPEditorInserterItem} WPEditorInserterItem */

/** @typedef {import('@wordpress/components').WPCompleter} WPCompleter */

/**
* Creates a blocks repeater for replacing the current block with a selected block type.
*
* @param {Object} props Component props.
* @param {string} [props.getBlockInsertionParentClientId] Client ID of the parent.
* @param {string} [props.getInserterItems] Inserter items for parent.
* @param {string} [props.getSelectedBlockName] Name of selected block or null.
*
* @return {WPCompleter} A blocks completer.
*/
function createBlockCompleter() {
Expand Down

0 comments on commit 4254bf1

Please sign in to comment.