460 Commits

Author SHA1 Message Date
Tim Schaub
621f012211 Remove Rhino support 2015-10-30 13:11:43 -06:00
Jeff Williams
4a40d00cac Merge pull request #1084 from nicksay/lint-space-after-keywords
Clean up space-after-keywords lint violations
2015-10-19 16:25:51 -07:00
Jeff Williams
52a5b3df0f prevent crash on JSXAttribute nodes with no value (#1085) 2015-10-19 16:21:36 -07:00
Jeff Williams
2e04416a9a prevent crash on ExperimentalRestProperty nodes (#1091) 2015-10-19 15:57:53 -07: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
Matt Carroll
65ede6e4fb Fix typo in JSXMemberExpresson walker 2015-08-24 13:01:27 -07:00
Jeff Williams
5a58bdf5a5 support arrow function expressions (#555) 2015-08-20 11:01:08 -07:00
Jeff Williams
ebee2014ad look for JSX files by default (#1001) 2015-08-20 10:50:00 -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
93bd06c9e2 update gulp-eslint; delint 2015-08-13 16:23:19 -07:00
Jeff Williams
ff3760937a Merge pull request #1032 from bobylito/master
Make the markdown parser able to generate anchors for headings
2015-08-04 16:25:34 -07:00
Alexandre Stanislawski
aecd558f1c Make the markdown parser able to generate anchors for headings
It uses the following configuration key in the markdown
section : idInHeadings.
If set to true it will make the headings generated in the markdown have
id's like on github.
2015-08-01 11:21:09 +02:00
Jeff Williams
3ad5be44fe update dependencies 2015-07-29 16:30:49 -07:00
Jeff Williams
99fb8a00d2 prevent infinite loop that can be caused by double module definitions (#975) 2015-07-07 15:23:29 -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
80d9429ac8 doc cleanup 2015-06-14 13:53:21 -07:00
Jeff Williams
05a08ad6a0 upgrade Espree, and update code to reflect breaking changes in Espree (#977) 2015-06-13 15:03:59 -07:00
Jeff Williams
2412b48037 fix build breakage (#976) 2015-06-08 15:46:17 -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
70d13b8948 update ESLint, and delint accordingly 2015-06-08 14:49:08 -07:00
Jeff Williams
9856173fc7 fix existing docs 2015-05-19 17:13:30 -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
fe9407cd71 support class expressions (#555) 2015-04-10 16:02:27 -07:00
Jeff Williams
a340e8b098 cleanup 2015-03-30 16:26:04 -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
141499d3af update Espree; handle new node types (#555) 2015-03-16 09:58:41 -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
Jeff Williams
951e9ef881 remove printInfo callers (#812) 2015-03-15 16:55:50 -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
Jeff Williams
be77aa4344 handle enums with numeric keys (#946) 2015-03-09 17:28:12 -07:00
Larry Davis
5ed70331fc handle numeric object keys correctly (#945) 2015-03-09 16:18:44 -07:00
Jeff Williams
3f1ecac83a never make AST nodes enumerable 2015-03-06 08:35:09 -08:00
Jeff Williams
3801e12c34 cleanup 2015-03-05 15:39:31 -08:00
Jeff Williams
4713925d78 correctly infer when the class tag contains a class description (#935)
Fixes a regression caused by f1354563965792b8dd183f5a5331f8fcc67ea319.
2015-03-05 15:08:22 -08:00
Jeff Williams
878115e1c1 autodetect string, boolean, and numeric default values of parameters (#555)
We ignore other types based on these assumptions:

1) It doesn't make sense to show variable identifiers, which may refer to (for example) module-private values that should not be documented.
2) If we tried to capture objects and arrays, we would have to iterate over them to see if they contain any variable identifiers, which would be a pain (and potentially confusing: "Why do some objects appear in the docs but not others?")
3) Most developers will not define complex default values in a function definition.
4) In many cases, object and array default values will be `{}` and `[]`, respectively, and usually those don't merit documentation.
2015-03-03 17:22:30 -08:00
Jeff Williams
e2b454512c prevent a crash when only some parameters have default values (#555) 2015-03-02 09:00:09 -08:00
Jeff Williams
058cf91392 ignore SpreadElement nodes (#555) 2015-02-27 16:06:05 -08:00
Jeff Williams
96c8f6994d handle ES 2015 rest parameters (#555)
As part of this commit, we automatically flag rest parameters as repeatable, even if the JSDoc comment doesn't identify the parameter as repeatable. As a result, it's difficult to document a rest parameter as though it were a normal parameter (should you want to do that for some reason). I may revert this piece if it generates complaints.
2015-02-27 14:39:20 -08:00
Jeff Williams
a243719fb2 cleanup 2015-02-26 16:05:22 -08:00
Jeff Williams
cc4ffc762e update Espree and LICENSE file 2015-02-26 14:59:05 -08:00
Jeff Williams
65f307322a resolve this correctly in chained class declarations within modules (#894) 2015-02-23 16:58:33 -08:00
Jeff Williams
fe04fa18f9 change ID for pure JS parser to 'js'; remove half-baked ability to use arbitrary parsers; test coverage 2015-02-23 09:14:42 -08:00