511 Commits

Author SHA1 Message Date
Jeff Williams
f1017988ec fix crash when the author tag is empty (#1289) 2017-07-06 20:56:57 -07:00
Jeff Williams
43a117d6a1 add recurseDepth config option (#1340) 2017-07-06 20:50:42 -07:00
Jeff Williams
8f5c60befd support bigint 2017-07-06 16:40:21 -07:00
Jeff Williams
b3952f6fed support import.meta 2017-07-06 16:34:18 -07:00
Jeff Williams
970857a408 support optional chaining 2017-07-06 16:31:58 -07:00
Jeff Williams
5beee268a0 support numeric separators 2017-07-06 16:28:24 -07:00
Jeff Williams
5f4c7296f0 support dynamic import 2017-07-06 16:23:25 -07:00
Jeff Williams
701630e327 support function.sent 2017-07-06 16:19:26 -07:00
Jeff Williams
97d8fe4e91 support function bind operator 2017-07-06 16:15:15 -07:00
Jeff Williams
aa27b05cf8 support async generators 2017-07-06 16:01:47 -07:00
Jeff Williams
8b26b6d669 remove author tags, and clean up JSDoc comments without leading asterisks
Most of the existing author tags are grossly out of date at this point. The definitive reference for who has contributed what is available at https://github.com/jsdoc3/jsdoc/graphs/contributors.
2017-07-06 00:01:11 -07:00
Jeff Williams
a097e2f299 get rid of jsdoc/util/runtime (#1383); delint 2017-07-05 22:57:11 -07:00
Jeff Williams
15b57e52f3 overhaul ESLint config; delint 2017-07-05 21:05:52 -07:00
Jeff Williams
133ee8a5af autodetect generator functions, and support a new @generator tag (#1158) 2017-07-04 20:36:42 -07:00
Jeff Williams
cc63e98a8e parse export extensions 2017-07-04 18:07:31 -07:00
Jeff Williams
47005e9646 support class properties, including private properties 2017-07-04 18:01:34 -07:00
Jeff Williams
fb37938b77 parse decorators (#1165)
This change allows decorators to be parsed, but it does not add information about decorators to the generated documentation.
2017-07-04 16:01:01 -07:00
Jeff Williams
b719e68907 parse do expressions 2017-07-04 15:49:02 -07:00
Max Geissler
af5d169673 add line number to the error output when parsing a tag's type expression (#1057) 2017-07-04 13:57:46 -07:00
Jeff Williams
2aad297cdc support a JS config file (#1351)
Thanks to @BrandonOCasey for implementing this feature.
2017-07-03 17:00:19 -07:00
Hilmar Lapp
4a187da562 Fix directory name clashes with JSDoc plugin and template loading (#1308) 2017-07-03 16:41:18 -07:00
Jeff Williams
6cb96f5164 correctly document the constructor of a class exported from an ES2015 module (#1272) 2017-07-03 15:34:25 -07:00
Jeff Williams
5660c94adf use the correct scope for exported symbols (and their children) in ES 2015 modules (#1293) 2017-07-03 14:47:47 -07:00
Jeff Williams
2dcdb21e96 add columnno attribute to jsdocCommentFound and symbolFound events (#1362) 2017-07-02 17:33:10 -07:00
Jeff Williams
25720f703e restore range information 2017-07-02 17:20:46 -07:00
Jeff Williams
7fd0f590ee don't crash on UTF-8 JSON files with a leading BOM (#1256, #1297) 2017-07-02 16:28:23 -07:00
Jeff Williams
68a762e689 update dependencies; delint 2017-07-02 15:46:58 -07:00
Jeff Williams
82d0eff079 add AwaitExpression to list of node types 2017-07-02 13:43:11 -07:00
Jeff Williams
2f60a2c222 handle async functions (#1188) 2017-07-02 13:38:08 -07:00
Jeff Williams
ffec4a4229 switch to Babylon parser 2017-07-01 20:33:17 -07:00
Jeff Williams
a9ba41976d remove extraneous comment 2017-07-01 16:57:42 -07:00
Jeff Williams
f78cdd8eab use Espree's built-in comment attachment (#1381) 2017-07-01 16:49:51 -07:00
Chris Recher
632c2bb62b Remove dependence on fs-extra. 2016-09-30 13:56:04 -07:00
Jeff Williams
3fc0cd0717 handle exported ES2015 classes correctly (#1137) 2016-09-12 16:39:35 -07:00
Jeff Williams
571ca673ee remove unused regexp 2016-09-12 16:38:48 -07:00
Jeff Williams
f9c42de5c1 upgrade Espree (#1258) 2016-09-12 15:49:51 -07:00
Jeff Williams
8ad5ebab97 manually revert fix for #1081 (6be9dac616549ce226e4c0064876c7cb3b64fe25)
This fix caused #1259.
2016-09-09 16:21:43 -07:00
Björn Harrtell
5ca4590a9e Replace wrench with fs-extra 2016-03-31 21:41:52 +02:00
Björn Harrtell
34c6eb9ffd Update gulp-eslint and minor style fixes to adapt to new eslint version 2016-03-31 21:17:41 +02:00
Kevin Locke
61a3599154 Support an Array of tags titles in allowUnknownTags
This commit adds support for specifying an Array of tags which are
unknown to JSDoc, but allowed without error.  It provides a more
granular way to disable such errors while retaining the benefits of
catching errant tags (e.g. typos).

The intended use case is catching errant tags when using additional
tools which support tags not recognized by JSDoc (e.g. Closure Compiler
and the tags discussed in #605).

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-02-24 11:38:56 -08:00
Kevin Locke
2a4d1250d1 Remove dead code for allowUnknownTags checking
When tagDef is falsey the previous if block is entered and the function
always returns.  Therefore, this code block can never be entered.  If it
could, it would log the same error as above.  Remove it.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-02-24 11:36:35 -08:00
Jeff Williams
3dbb94f157 autodetect défault and repeatable parameters in ES2015 methods (#1144) 2016-01-14 17:23:37 -08:00
vvo
b1cd9a2598 fix(object spread): support experimental object spread
As per https://github.com/sebmarkbage/ecmascript-rest-spread

This was badly failing previously.

Any insights/comments welcomed!
2016-01-05 18:10:46 +01:00
Jeff Williams
012369aca4 Merge pull request #1036 from Oblongmana/fix/markdown-breaks-namepaths-with-special-characters
Fix markdown breaking namepaths w/special chars
2015-12-08 16:05:29 -08:00
Ger Hobbelt
6be9dac616 fixing #1081:
- tightened-up detection of the correct path for the plugins by checking if the plugin file *itself* actually exists in the given path; it's done this way to cope with scenarios where JSDoc is executed in another project's working directory where *that* project has plugins of itself in a similar directory structure (`plugins/*`).

  We DO NOT change the search path used by JSDoc.

- ditto for templates: we know that a template MUST have a `publish.js` file at least, so we go and check if that one exists at the location where we would otherwise have assumed it does.
2015-12-07 16:24:41 -08:00
Jeff Williams
41d33e8399 fix multiple naming issues with members of a class that is the default export (#1120) 2015-12-07 15:56:07 -08:00
Jeff Williams
25ab7b6631 refactor 2015-12-05 10:41:12 -08:00
Jeff Williams
1bdcc52156 correctly handle classes that are the default export (#1113) 2015-12-03 06:03:20 -08:00
Jeff Williams
224e796428 prevent crash when exporting an anonymous class (#1113) 2015-11-29 14:53:55 -08:00
Jeff Williams
ba673ff4c1 cleanup 2015-11-25 16:03:45 -08:00