-
Notifications
You must be signed in to change notification settings - Fork 42
🐛 Bug: Using file-level changes and suppressTypeErrors together does not work #1546
Copy link
Copy link
Open
Labels
status: accepting prsPlease, send a pull request to resolve this! 🙏Please, send a pull request to resolve this! 🙏type: bugSomething isn't working :( 🐛Something isn't working :( 🐛
Description
Bug Report Checklist
- I have tried restarting my IDE and the issue persists.
- I have pulled the latest
mainbranch of the repository. - I have searched for related issues and found none that matched my issue.
Expected
When using these options together, they should work.
/* Above file */
(function () {
let text: string | number;
text = 1;
})();Actual
Additional comments added with below or above, are not added to file.
(function () {
let text: string | number;
text = 1;
})();Additional Info
Enabled suppressTypeErrors on all tests inside test/cases/files -> All test outputs are missing the comments that were supposed to be added.
For example, typestat.json
{
"cleanups": {
"suppressTypeErrors": true
},
"files": {
"above": "/* Above file */"
},
"fixes": {
"incompleteTypes": true
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: accepting prsPlease, send a pull request to resolve this! 🙏Please, send a pull request to resolve this! 🙏type: bugSomething isn't working :( 🐛Something isn't working :( 🐛