jose-elias-alvarez / nvim-lsp-ts-utils

Utilities to improve the TypeScript development experience for Neovim's built-in LSP client.
The Unlicense
438 stars 18 forks source link

[BUG] Disable rule in file appends the disable comment at the end of the file #58

Closed jorrete closed 3 years ago

jorrete commented 3 years ago

FAQ

Issues

Neovim Version

0.5.0

Steps to reproduce

Open a javascript file with some error eslint errors in it. Launch code actions and select disable rule for the entire file.

Expected behavior

The comment disabling the rule should appear at the beginning of the file.

Actual behavior

The comment disabling the rule appears at the end of the file.

Debug log

No response

Help

No

Implementation help

No response

jose-elias-alvarez commented 3 years ago

Whoops! Should be fixed by 685f88c069dbdf013960523958cf874c7d39cbdd. Can you update and let me know?

jorrete commented 3 years ago

Yes, fixed with that commit. Thanks for your work!