Skip to content

Commit

Permalink
Address change requests
Browse files Browse the repository at this point in the history
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
  • Loading branch information
Josh-Cena committed Jun 24, 2021
1 parent 4f38010 commit 269c971
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ module.exports = {
'prefer-destructuring': WARNING,
yoda: WARNING,
'no-control-regex': WARNING,
'no-empty': WARNING,
'no-empty': [WARNING, {allowEmptyCatch: true}],
'no-prototype-builtins': WARNING,
'no-case-declarations': WARNING,
'no-undef': OFF,
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-docs/src/sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function assertIsCategory(
}
// "collapsed" is an optional property
if (
Object.prototype.hasOwnProperty.call(item, 'collapsed') &&
typeof item.collapsed !== 'undefined' &&
typeof item.collapsed !== 'boolean'
) {
throw new Error(
Expand Down
4 changes: 1 addition & 3 deletions packages/docusaurus/src/server/configValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ const SiteUrlSchema = URISchema.required().custom(function (value, helpers) {
warningMessage: `the url is not supposed to contain a sub-path like '${pathname}', please use the baseUrl field for sub-paths`,
});
}
} catch (e) {
/* Do nothing with invalid URL */
}
} catch (e) {}
return value;
}, 'siteUrlCustomValidation');

Expand Down

0 comments on commit 269c971

Please sign in to comment.