You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Add suggestions to no-console
Fixes#17493
* Fix method of when to show safe suggestions and fix tests.
* improved formatting of tests with suggestions by breaking them into multiple lines
* Updated function name to canProvideSuggestions. Added better description for the function.
* Fixed code that fails when AST is not deep enough.
* Added suggestions:null for test cases that will not provide a suggestion.
* test to make sure console statement with semicolon is removed via suggestion
* dont provide suggestions if removing console.log() will lead to ASI breaking
* missing period
* renamed regexps variable names for better understanding
* updated passing in expressionstatement node instead of memberexpression node to maybeAsiHazard
* ++ or -- in the token before is not always safe.
0 commit comments