Skip to content

Question about Transforms and code comments #1967

Answered by pdehaan
cfjedimaster asked this question in Q&A
Discussion options

You must be logged in to vote

I think maybe this: #789; or more specifically #789 (comment):

The awkward part of this is that the linter and transform arguments are going to be reversed. Hmm.

Signatures from the current docs at https://www.11ty.dev/docs/config/#transforms

eleventyConfig.addLinter("linter-name", function(content, inputPath, outputPath) {});
eleventyConfig.addTransform("transform-name", function(content, outputPath) {});

Also this comment further down in the thread #789 (comment):

Code is in for this (71f5943). We’re using this.inputPath and this.outputPath to avoid the argument order consistency problem with linters. We’ll keep support for the existing arguments but transition away from them in the …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cfjedimaster
Comment options

Answer selected by cfjedimaster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants