mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
enable JSHint's "newcap" test
This commit is contained in:
parent
dabb0b4410
commit
c60f68286f
@ -5,7 +5,7 @@
|
||||
"forin": true,
|
||||
"immed": true,
|
||||
"latedef": false,
|
||||
"newcap": false,
|
||||
"newcap": true,
|
||||
"noarg": false,
|
||||
"noempty": false,
|
||||
"nonew": false,
|
||||
|
||||
4
jsdoc.js
4
jsdoc.js
@ -263,8 +263,8 @@ function main() {
|
||||
}
|
||||
|
||||
if (/(\bREADME|\.md)$/i.test(env.opts._[i])) {
|
||||
var readme = require('jsdoc/readme');
|
||||
env.opts.readme = new readme(env.opts._[i]).html;
|
||||
var Readme = require('jsdoc/readme');
|
||||
env.opts.readme = new Readme(env.opts._[i]).html;
|
||||
env.opts._.splice(i--, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,7 +9,8 @@ var _synonyms = {},
|
||||
_namespaces = [],
|
||||
hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
|
||||
function _TagDefinition(title, etc) {
|
||||
/** @private */
|
||||
function TagDefinition(title, etc) {
|
||||
etc = etc || {};
|
||||
|
||||
this.title = dictionary.normalise(title);
|
||||
@ -21,7 +22,8 @@ function _TagDefinition(title, etc) {
|
||||
}
|
||||
}
|
||||
|
||||
_TagDefinition.prototype.synonym = function(synonymName) {
|
||||
/** @private */
|
||||
TagDefinition.prototype.synonym = function(synonymName) {
|
||||
_synonyms[synonymName.toLowerCase()] = this.title;
|
||||
return this; // chainable
|
||||
}
|
||||
@ -30,7 +32,7 @@ _TagDefinition.prototype.synonym = function(synonymName) {
|
||||
var dictionary = {
|
||||
/** @function */
|
||||
defineTag: function(title, opts) {
|
||||
_definitions[title] = new _TagDefinition(title, opts);
|
||||
_definitions[title] = new TagDefinition(title, opts);
|
||||
|
||||
if (opts.isNamespace) {
|
||||
_namespaces.push(title);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user