You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I was getting this error when I was running the command yarn lint and as my code was very big so finding the white space was very tough then I found a amazing feature build in the IDE that I was using which was VScode in my case but don't worry I will mention other IDEs too where you can run commands to solve this issue.
Visual Studio Code
Open the file in Visual Studio Code.
Press Ctrl+Shift+P to open the Command Palette.
Type "Trim Trailing White Space" and press Enter.
Save the file (Ctrl+S)
Sublime Tex
Open the file in Sublime Text.
Press Ctrl+A to select all the text in the file.
Press Ctrl+K+Delete to remove the trailing spaces.
Save the file (Ctrl+S)
Command line
Open a terminal/command prompt window.
Navigate to the directory containing the Markdown file.
Run the following command sed -i 's/[ \t]*$//' filename.md
This command will remove all trailing spaces in the file named "filename.md"
Once you have removed the trailing spaces, you should be able to run your linter tool again without encountering the "MD009/no-trailing-spaces" error.
Hope this will help someone who's facing this issue in future.☺️
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So I was getting this error when I was running the command
yarn lint
and as my code was very big so finding the white space was very tough then I found a amazing feature build in the IDE that I was using which was VScode in my case but don't worry I will mention other IDEs too where you can run commands to solve this issue.Visual Studio Code
Sublime Tex
Command line
Once you have removed the trailing spaces, you should be able to run your linter tool again without encountering the "MD009/no-trailing-spaces" error.
Hope this will help someone who's facing this issue in future.☺️
Beta Was this translation helpful? Give feedback.
All reactions