Skip to content

πŸ› Bug: Using file-level changes and suppressTypeErrors together does not workΒ #1546

@rubiesonthesky

Description

@rubiesonthesky

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch 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
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send a pull request to resolve this! πŸ™type: bugSomething isn't working :( πŸ›

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions