/** * Minified by jsDelivr using Terser v5.37.0. * Original file: /npm/@11ty/eleventy-plugin-inclusive-language@1.0.3/.eleventy.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ const pkg=require("./package.json"),chalk=require("chalk"),inclusiveLanguage=require("./inclusive-language");module.exports={initArguments:{},configFunction:function(e,n={}){try{e.versionCheck(pkg["11ty"].compatibility)}catch(e){console.log(`WARN: Eleventy Plugin (${pkg.name}) Compatibility: ${e.message}`)}n.words||(n.words="simply,obviously,basically,of course,clearly,just,everyone knows,however,easy"),n.templateFormats||(n.templateFormats=["md"]),e.addLinter("inclusive-language",(function(e,r,i){let o;if(Array.isArray(n.words))o=n.words;else{if("string"!=typeof n.words)throw new Error("Invalid type for options.words (needs string or array) in eleventy-plugin-inclusive-language");o=n.words.split(",")}if(!Array.isArray(n.templateFormats))throw new Error("Invalid type for options.templateFormats (needs array) in eleventy-plugin-inclusive-language");let a=!1;for(let e of n.templateFormats)if(r.endsWith("."+e)){a=!0;break}if(!a)return;let t=inclusiveLanguage(e,o);t.length&&(console.warn(chalk.yellow(`Inclusive Language Linter (${r}):`)),console.warn(" "+t.join("\n ")))}))}}; //# sourceMappingURL=/sm/a849d2f2651a623e2a1f49a6c49757ca9d9ae22d4862a2706170f64b763e8e6d.map