671 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
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
47005e9646 support class properties, including private properties 2017-07-04 18:01:34 -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
9267ca8363 remove one last Rhino check 2017-07-03 15:39:20 -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
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
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
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
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
Jeff Williams
3dbb94f157 autodetect défault and repeatable parameters in ES2015 methods (#1144) 2016-01-14 17:23:37 -08:00
Jeff Williams
45d9b5ee0e Merge pull request #1140 from algolia/fix/avoid-astnode.js-test-skip
test(astnode.js): avoid skipping tests having node.js inside
2016-01-05 15:57:19 -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
vvo
8799e898bf test(astnode.js): avoid skipping tests having node.js inside
This commit makes the test suite run test/specs/jsdoc/src/astnode.js

It was previously skipped because of the runtime being node and
astnode.js containing "node"..

I even wonder if its still relevant to try to support different
runtime, but that's for another PR I guess.
2016-01-05 17:28:58 +01:00
Jeff Williams
ab2d8626c1 better docs 2015-12-07 16:01:22 -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
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
Tim Schaub
621f012211 Remove Rhino support 2015-10-30 13:11:43 -06:00
Alex Nicksay
13f09f397c Clean up space-after-keywords lint violations
This eliminates the following when running `gulp lint`:

> error  Keyword "catch" must be followed by whitespace

Closes #1083
2015-10-07 10:46:18 -04:00
Jeff Williams
5a58bdf5a5 support arrow function expressions (#555) 2015-08-20 11:01:08 -07:00
Jeff Williams
4822bca6c1 whitespace 2015-08-19 09:50:46 -07:00
Jeff Williams
087f07dcd5 use the correct longname for properties documented in instance methods (#1011)
Fixes a regression caused by 65f307322ac64d965694dca8f82bf98f08a1e2e4.
2015-08-18 15:34:24 -07:00
Jeff Williams
8e47e5912a add JSX support (#1001) 2015-08-13 16:48:17 -07:00
Jeff Williams
f249630ff0 prevent crash when a FunctionDeclaration node lacks an id property (#1030) 2015-07-05 17:09:45 -07:00
Jeff Williams
7a0ec07521 attach comments to default/rest parameters (#1025) 2015-06-21 10:56:34 -07:00
Jeff Williams
01df038474 unconditionally add the necessary properties to AST nodes (#976)
Fixes a bizarre bug that caused us to assign the wrong name to object properties, apparently because the node ID was not defined at the appropriate time.
2015-06-08 15:24:55 -07:00
Jeff Williams
faba1c8b10 use the correct scope when an ES 2015 class is a memberof something else, and the class has instance members (#994) 2015-05-05 16:35:33 -07:00
Jeff Williams
cfb04e390d fix crash when assigning a class expression to an object property (#988) 2015-04-21 17:34:03 -07:00
Jeff Williams
b6e5051d2f support ES 2015 modules (#555) 2015-04-18 15:47:36 -07:00
Jeff Williams
3189d0cf06 add tests for ES 2015 constructors (#555) 2015-04-10 16:14:19 -07:00
Jeff Williams
fe9407cd71 support class expressions (#555) 2015-04-10 16:02:27 -07:00
Jeff Williams
d49d99cf2c fix linter error 2015-03-30 09:58:35 -07:00
Jeff Williams
80c2a9a38c fix crash when multiple params have inline JSDoc comments with no JSDoc tags (#972) 2015-03-30 09:56:32 -07:00
Dasa Paddock
36717281ac Add support for a markdown.hardwrap config property 2015-03-25 16:54:34 -07:00
Jeff Williams
da14fedb69 replace all occurrences of an inline tag, not just some (#936, #957) 2015-03-18 17:52:31 -07:00
Jeff Williams
4b8504cac9 support ES 2015 classes (#555, #769)
Incorporates work by @eventualbuddha.
2015-03-18 17:14:04 -07:00
Jeff Williams
0b41c89f83 don't try to parse HTML tags as type expressions (hegemonic/jsdoc-baseline#149) 2015-03-15 17:12:14 -07:00
Alexandrine Boissière
0af05bea81 Add bluebird promises, make publish method work asynchronously if needed 2015-03-15 16:45:06 -07:00
Jeff Williams
67244c06eb quote unsafe property names (#950)
Fixes a regression introduced by the parser overhaul in 44d9ec6831e498bd082de98a5bc60abfdba2bb7f.
2015-03-13 16:56:32 -07:00
Jeff Williams
7ca432d587 allow symbol names that contain whitespace to be borrowed (#818) 2015-03-10 17:37:48 -07:00