Skip to content

Commit

Permalink
fix(cli): filter suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Nov 5, 2024
1 parent fc7050d commit c5f08dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ import glob = require('glob');
else {
const diagnostics = linter.lint(fileName);
for (const diagnostic of diagnostics) {
if (diagnostic.category === ts.DiagnosticCategory.Suggestion) {
continue;
}
let output = ts.formatDiagnosticsWithColorAndContext([diagnostic], {
getCurrentDirectory: ts.sys.getCurrentDirectory,
getCanonicalFileName: ts.sys.useCaseSensitiveFileNames ? x => x : x => x.toLowerCase(),
Expand Down

0 comments on commit c5f08dd

Please sign in to comment.