Just found this very interesting feature in Visual Studio Code. It turns out that if you break a style rule, and you get a warning from ESLint, if you click on the lightbulb that appears on the gutter, near the line number where the error is, you get a "Fix problem" option.
At first, I wasn't sure if this was built into VSCode or in the the ESLint extension I'm using. After looking into this, I found that the extension not only provides that functionality but it offers many more nice things like auto fixing all "fixable" validation errors on save.
Check it out: https://marketplace.visualstudio.com/...
If you found this video useful, share it, subscribe to the channel, follow me on Twitter and Medium - @oprearocks.
Keep an open mind!
#eslint #vscode #visualstudio #visualstudiocode #webdev #webdevelopment #styleguide #codingstandards #javascript #nodejs #es6 #oprearocks
На этой странице сайта вы можете посмотреть видео онлайн Automatically fix ESLint code validation errors in Visual Studio Code длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Adrian Oprea 07 Сентябрь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 25,836 раз и оно понравилось 20 зрителям. Приятного просмотра!