-
Notifications
You must be signed in to change notification settings - Fork 15
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
Implemented no-todo
code style rule.
#56
Implemented no-todo
code style rule.
#56
Conversation
src/plugins/codeStyle/index.ts
Outdated
}, | ||
CommentStatement: e => { | ||
if (validateTodo) { | ||
console.log('this.lintContext', this.lintContext); |
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.
No logs
src/util.ts
Outdated
@@ -97,6 +97,8 @@ function tryLoadConfig(filename: string): BsLintConfig | undefined { | |||
export interface PluginContext { | |||
program: Readonly<Program>; | |||
severity: Readonly<BsLintRules>; | |||
// TODO: Is this the right place to put this? |
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.
Yes! Though I'm not sure how well it will scale as rules are added...
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.
Lovely addition!
@philippe-elsass-deltatre I just updated the code to remove the |
No description provided.