-
-
Notifications
You must be signed in to change notification settings - Fork 75
Only warn about an unsupported TypeScript version once #347
Conversation
Thanks for the pull request, @j-f1! I took a look to make sure it's ready for merging and found some changes are needed:
Can you please update the pull request to address these? (More information can be found in our pull request guide.) |
I think we can move the warning text outside the |
…lint#348) It gets annoying when you’re trying to lint a project with lots of files.
LGTM |
LGTM |
@soda0289 Done! |
LGTM |
@j-f1 I think we will have to use the global variable. We should move the warning text to its own function and contain the logic of checking if it has been called to there. Sorry for the confusion and thanks for the PR. |
This reverts commit 547db22.
LGTM |
LGTM |
LGTM |
parser.js
Outdated
@@ -99,11 +100,14 @@ function parse(code, options) { | |||
*/ | |||
if (typeof options.loggerFn === "function") { | |||
extra.log = options.loggerFn; | |||
} else if (options.loggerFn === false) { | |||
/** */ // eslint-disable-line valid-jsdoc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit odd 😄 Why not put the // eslint-disable-line valid-jsdoc
on the line of the function you are disabling? Alternatively you could use Function.prototype
as the value of the noop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I don’t add the JSDoc comment, it errors at line 98 instead. I’ll switch to Function.prototype
.
LGTM |
Thanks a lot for this @j-f1! |
It gets annoying when you’re trying to lint a project with lots of files. Fixes #348.