mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 05:27:00 +02:00
fix(v2): modify validation schema and tests for rehype/remark + remove duplicate dependency (#3247)
* chore(v2): remove duplicate dependency * fix(v2): make changes to validation for rehype and remark plugins * style(v2): run prettier
This commit is contained in:
parent
9399ad61c9
commit
fda1590b0d
6 changed files with 63 additions and 42 deletions
packages/docusaurus-utils-validation/src
|
@ -13,11 +13,9 @@ export const PluginIdSchema = Joi.string()
|
|||
|
||||
const MarkdownPluginsSchema = Joi.array()
|
||||
.items(
|
||||
Joi.array()
|
||||
// TODO, this allows [config,fn] too?
|
||||
.items(Joi.function().required(), Joi.object().required())
|
||||
.length(2),
|
||||
Joi.array().ordered(Joi.function().required(), Joi.object().required()),
|
||||
Joi.function(),
|
||||
Joi.object(),
|
||||
)
|
||||
.default([]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue