Open TheJaredWilcurt opened 2 months ago
The PR for this issue should:
/lib/linter/index.js
file with a doxenLinter
function that accepts { demos, options, linterSettings }
/lib/linter/defaultSettings.js
linterSettings
to change settings to true
if specified.lib/linter
folderconsole.info
when they detect issues, giving the rule name and actionable information.undefined
throw
to force CI's to stop.
Usage would look like this:
Create this file:
/scripts/documentationLinter.js
.package.json
add to the scripts section:npm run lint:demos
into your CI tool, or update your main lint script:Not sure what other linting rules would be useful.