-
-
Notifications
You must be signed in to change notification settings - Fork 163
JSDoc/GCC/TypeScript mode #356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Thanks, @l1bbcsg , I've amended the original post to include |
One case I can think of is that Technically, You can look into GCC types in details here: Types in the Closure Type System |
Both Re: real world differences between |
Actually, |
Ah, good catch, thanks @ExE-Boss ! Amended... |
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of gajus#356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
… utilize in `getPreferredTagName`, `isValidTag`, `getTagsByType`; fixes part of #356 BREAKING CHANGE: Allowable values: jsdoc|typescript|closure
…ypes` for types in "closure" and "typescript" modes; fixes part of gajus#356 BREAKING CHANGE: `@template` has no special meaning for regular jsdoc (is not even allowed by default), so don't check in "jsdoc" mode.
…ypes` for types in "closure" and "typescript" modes; fixes part of gajus#356 BREAKING CHANGE: `@template` has no special meaning for regular jsdoc (is not even allowed by default), so don't check in "jsdoc" mode.
Oh, and with #586, combined with a PR to jsdoctypeparser to prevent Update: On second thought, perhaps jsdoctypeparser should not be changed here since "jsdoc" supports closure types such as the optional |
…d "typescript" mode; fixes part of gajus#356 "jsdoc" mode or new "permissive" mode will not complain (in preparation for the rule potentially preventing other syntaxes by mode (where jsdoctypeparser does not forbid)).
… mode; continue checking on jsdoc; fixes part of gajus#356 Also avoids checking namepath on `interface` tag for `no-undefined-types` and `check-types` when in closure mode.
…turns"; fixes part of gajus#356
…d "typescript" mode; fixes part of gajus#356 "jsdoc" mode or new "permissive" mode will not complain (in preparation for the rule potentially preventing other syntaxes by mode (where jsdoctypeparser does not forbid)).
…h in non-"typescript" mode; fixes part of gajus#356
…d "typescript" mode; fixes part of gajus#356 "jsdoc" mode or new "permissive" mode will not complain (in preparation for the rule potentially preventing other syntaxes by mode (where jsdoctypeparser does not forbid)).
…h in non-"typescript" mode; fixes part of gajus#356
… mode; continue checking on jsdoc; fixes part of gajus#356 Also avoids checking namepath on `interface` tag for `no-undefined-types` and `check-types` when in closure mode.
…turns"; fixes part of gajus#356
…d "typescript" mode; fixes part of gajus#356 "jsdoc" mode or new "permissive" mode will not complain (in preparation for the rule potentially preventing other syntaxes by mode (where jsdoctypeparser does not forbid)).
…h in non-"typescript" mode; fixes part of gajus#356
…d "typescript" mode; fixes part of gajus#356 "jsdoc" mode or new "permissive" mode will not complain (in preparation for the rule potentially preventing other syntaxes by mode (where jsdoctypeparser does not forbid)).
…d "typescript" mode; fixes part of #356 "jsdoc" mode or new "permissive" mode will not complain (in preparation for the rule potentially preventing other syntaxes by mode (where jsdoctypeparser does not forbid)).
…h in non-"typescript" mode; fixes part of gajus#356
…h in non-"typescript" mode; fixes part of #356
…`private`), report bracketed type in non-Closure mode; fixes gajus#356 Also reports missing name with `typedef` in non-Closure mode
While I've gone ahead and stopped Note also that not all of TypeScript is yet supported in jsdoctypeparser, but we do have a mode there now (and which we are using in |
🎉 This issue has been resolved in version 28.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
#354 proposes adding a
mode
setting for allowing different behavior between TypeScript, Closure, and regular jsdoc. This setting could be used for other tweaks:parseClosureTemplateTag
inno-undefined-types
except forclosure
check-syntax
behavior (report non-GCC when in closure mode)module
for namepaths (see "todo" injsdocUtils.js
source), but only for "jsdoc" (and "closure"?) mode (TS doesn't support)valid-types
valid-types
- Ensure tags with optional type (tagsWithOptionalTypePosition
) only allow forpackage
,private
,protected
,public
, andstatic
if in closure mode.valid-types
- Only allow@extends {SomeType}
with brackets if in closure mode.valid-types
- Only allow@typedef {SomeType}
(without a name) in closure mode.@interface
in Closure@interface
in Closurecheck-tag-names
, avoid allowing@template
except inclosure
andtypescript
check-tag-names
, add other GCC tags forclosure
mode (GCC specific tags support #306)check-tag-names
to prefer other defaults withtagNamePreference
(return
overreturns
)Might accept a version in an array along with the mode string in case jsdoc, Closure, or TypeScript make breaking changes or add more features.
The text was updated successfully, but these errors were encountered: