mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Enable jsdoc/require-jsdoc rule, fix all violations (fixes #85).
This commit is contained in:
parent
a1249ad24d
commit
74af9f82fb
13 changed files with 257 additions and 59 deletions
|
|
@ -8,7 +8,12 @@ const cliEngine = new eslint.CLIEngine({});
|
|||
const linter = new eslint.Linter();
|
||||
const languageJavaScript = /js|javascript/i;
|
||||
|
||||
// Helper function that removes this project's use of eslint-plugin-jsdoc
|
||||
/**
|
||||
* Remove references to rules from eslint-plugin-jsdoc.
|
||||
*
|
||||
* @param {Object} config ESLint configuration object.
|
||||
* @returns {Object} ESLint configuration object.
|
||||
*/
|
||||
function cleanJsdocRulesFromEslintConfig(config) {
|
||||
const cleanedConfig = { ...config };
|
||||
for (const rule in config.rules) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue