mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 13:37:05 +02:00
test: improve test coverage; multiple internal refactors (#6912)
This commit is contained in:
parent
12a7305238
commit
ad88f5cc87
78 changed files with 1613 additions and 1149 deletions
|
@ -15,7 +15,7 @@ const messages = stylelint.utils.ruleMessages(ruleName, {
|
|||
const plugin = stylelint.createPlugin(
|
||||
ruleName,
|
||||
(primaryOption, secondaryOption, context) => (root, result) => {
|
||||
const validOptions = stylelint.utils.validateOptions(
|
||||
stylelint.utils.validateOptions(
|
||||
result,
|
||||
ruleName,
|
||||
{
|
||||
|
@ -28,10 +28,6 @@ const plugin = stylelint.createPlugin(
|
|||
},
|
||||
);
|
||||
|
||||
if (!validOptions) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
root.first &&
|
||||
root.first.type === 'comment' &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue