feat: Support `--shallow` argument for `lint` command. Closes #956 (#… · documentationjs/documentation@64f660d

Original file line numberDiff line numberDiff line change

@@ -3,12 +3,15 @@

33

const documentation = require('../');

44

const fs = require('fs');

55

const path = require('path');

6+

const sharedOptions = require('./shared_options');

67
78

/* eslint no-console: 0 */

89
910

module.exports.command = 'lint [input..]';

1011

module.exports.description = 'check for common style and uniformity mistakes';

11-

module.exports.builder = {};

12+

module.exports.builder = {

13+

shallow: sharedOptions.sharedInputOptions.shallow

14+

};

1215
1316

/**

1417

* Wrap around the documentation.lint method and add the additional