mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-18 03:26:57 +02:00
chore(v2): fix code style (revert previous changes)
This commit is contained in:
parent
1480a7eb80
commit
1f00d15c74
143 changed files with 457 additions and 458 deletions
|
@ -12,7 +12,7 @@ const messages = stylelint.utils.ruleMessages(ruleName, {
|
|||
rejected: 'Missing copyright in the header comment',
|
||||
});
|
||||
|
||||
module.exports = stylelint.createPlugin(ruleName, actual => {
|
||||
module.exports = stylelint.createPlugin(ruleName, (actual) => {
|
||||
return (root, result) => {
|
||||
const validOptions = stylelint.utils.validateOptions(result, ruleName, {
|
||||
actual,
|
||||
|
@ -22,7 +22,7 @@ module.exports = stylelint.createPlugin(ruleName, actual => {
|
|||
return;
|
||||
}
|
||||
|
||||
root.walkComments(comment => {
|
||||
root.walkComments((comment) => {
|
||||
// Ignore root comments with copyright text.
|
||||
if (
|
||||
comment === comment.parent.first &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue