Allows VS Code to start offering intellisense and autocompletion options for the eleventyConfig
object. Super useful when you’re trying to remember the capitalization on eleventy.addPassthroughCopy()
.
In .eleventy.js
or eleventy.config.js
:
/**
* @param {import("@11ty/eleventy/src/UserConfig")} eleventyConfig
*/
module.exports = (eleventyConfig) => {
return {};
};
(Maybe obvious, but the /** ... */
comment is the important part for VSC.)