Check out example codes for "sublimelinter-html-tidy for linux". It will help you in understanding the concepts better.

Code Example 1

step 1: Package Control: Install Package --> Sublimelinter-html-tidy
step 2: sudo apt-get install tidy
step 3: Preferences > Package Settings > SublimeLinter > Settings
step 4: add {"paths":{"linux":["~/tidy"],"osx":[],"windows":[]}} to right tab
step 5: restart Sublime Text

Learn ReactJs, React Native from