-
Notifications
You must be signed in to change notification settings - Fork 11
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
Lint fixes #10
Lint fixes #10
Conversation
src/rules/noFlowFixMeComments.js
Outdated
|
||
const create = (context) => { | ||
const allowedPattern = context.options[0] ? new RegExp(context.options[0], 'u') : null; | ||
const extraMessage = allowedPattern ? ' Fix it or match `' + allowedPattern.toString() + '`.' : ''; | ||
const extraMessage = allowedPattern ? ` Fix it or match \`${allowedPattern.toString()}\`.` : ''; |
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.
const extraMessage = allowedPattern ? ` Fix it or match \`${allowedPattern.toString()}\`.` : ''; | |
const extraMessage = allowedPattern ? ` Fix it or match \'${allowedPattern.toString()}\'.` : ''; |
Maybe instead of a backtick we can use single quotations to match the format of other messages
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.
btw the test would then need to be updated if it is changed from backticks - this change won't provide much value but we should probably have standards in the error messaging
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.
LGTM 🚀
Closes #7