Fixing linting errors

Fixing Linting Errors

Situation: You want to push up a Pull Request, but if any files has linting errors it’ll be problematic with the PR.

Indicators of Linting Errors

When you open terminal and see the “Problem” tab, linting errors will be show here. You can also see red lines on any file itself. Sometimes your machine expects “tabs”, but you used “spaces”.

The command to fix linting error for a particular file (change directory into the problematic file):

$ yarn linting file_name.js --fix

For more content on data science, R, and Python find me on Twitter.

Previous
Next