Check out example codes for "auto fix tslint rules". It will help you in understanding the concepts better.

Code Example 1

tslint --fix -c ./config/tslint.json 'src/**/*{.ts,.tsx}'

Learn ReactJs, React Native from akashmittal.com