-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect diff being generated with eslint v9 #111
Comments
The arguments passed to
and
Difference [
{ offset: 120, operation: 'delete', deleteText: ';' },
{ offset: 183, operation: 'delete', deleteText: ';' },
{ offset: 248, operation: 'delete', deleteText: ';' },
{
offset: 279,
operation: 'replace',
insertText: ' constructor(public readonly httpRequest: BaseHttpRequest) {',
deleteText: ' constructor(public readonly httpRequest: BaseHttpRequest) { '
},
{ offset: 345, operation: 'delete', deleteText: ' ' },
{ offset: 352, operation: 'delete', deleteText: ' ' },
{
offset: 358,
operation: 'replace',
insertText: ' ',
deleteText: ' '
},
{ offset: 375, operation: 'delete', deleteText: ' ' },
{
offset: 398,
operation: 'replace',
insertText: ' ',
deleteText: ' '
},
{ offset: 422, operation: 'delete', deleteText: ' ' },
{ offset: 432, operation: 'delete', deleteText: ' ' },
{ offset: 500, operation: 'delete', deleteText: ' ' },
{ offset: 548, operation: 'delete', deleteText: ' ' },
{
offset: 569,
operation: 'replace',
insertText: ' ',
deleteText: ' '
},
{
offset: 599,
operation: 'replace',
insertText: ' })',
deleteText: ' });'
},
{ offset: 611, operation: 'delete', deleteText: ' ' },
{
offset: 617,
operation: 'replace',
insertText: '}',
deleteText: ' '
},
{ offset: 622, operation: 'delete', deleteText: '}' }
] |
Since the diff is actully correct. Let's close this, and wait to see what should we do in ESLint or eslint-plugin-prettier first. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I won't repeat all the context; it can be found here prettier/eslint-plugin-prettier#697 (comment) - I've been advised to raise this here instead.
The text was updated successfully, but these errors were encountered: