Support vscode and webstorm
See original GitHub issueThanks for this great library.
I create a custom rule successfully, but unfortunately, when using the vscode tslint plugin, I can’t see the error ( the red curly brackets ).
Here is my code:
export class Rule extends Lint.Rules.AbstractRule {
public static FAILURE_STRING = (path: string) => {
return `${path} - debugger statement forbidden;`;
}
public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
const nodes = tsquery(sourceFile, 'DebuggerStatement');
return nodes.map(result => {
return new RuleFailure(
result.getSourceFile(),
result.getStart(),
result.getEnd(),
Rule.FAILURE_STRING(sourceFile.fileName),
this.ruleName
);
});
}
}
Do you have any idea why?
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:21 (7 by maintainers)
Top Results From Across the Web
How to move from VS Code to WebStorm - JetBrains
Explore some tips on how to migrate from VS Code to WebStorm. ... Here are a few tips that can help you with...
Read more >VSCode vs WebStorm - Robert Cooper
WebStorm is better at refactoring JavaScript/TypeScript code. You're able to move functions and variables from one file to another, which VSCode ...
Read more >WebStorm vs VS Code: Compare Top IDEs | TechRepublic
“Visual Studio” is Microsoft's IDE platform, while Visual Studio Code/VS Code is Microsoft's code editor. The two products can be used together.
Read more >How to Switch from WebStorm to VS Code
How To Switch from WebStorm to VS Code. In this article, I'm not going to compare WebStorm with VS Code or share the...
Read more >VSCode vs Webstorm for developing applications using ...
WebStorm is noticeably faster than vscode, 100%. I used vscode forever and like everything about it, except that it's typescript compiler is ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
just trying to figure out how to debug this! I’ll hopefully figure it out soon