ESLint is the tool for validating javascript code.

Step 1: Go to Atom – preferences

Screen Shot 2018-04-22 at 9.33.33 AM

Step 2: Click on Install

Screen Shot 2018-04-22 at 9.35.02 AM

Step 3: Search for ‘linter-eslint’ and linter and Install

Screen Shot 2018-04-22 at 9.42.01 AM.png

Step 4: (from this step we need to do this all in each project)

in terminal

[project folder] npm install --save -dev eslint-config-rallycoding

Step 5: add file to project .eslintrc

Screen Shot 2018-04-22 at 9.54.25 AM

Step 6: add following code to .eslintrc file

"extends" : "rallycoding"

NSLint Setup is done.

Now check if it’s working correctly or not.

make any error for ex. write some code without semicolon

Screen Shot 2018-04-22 at 10.12.27 AM.png


Hope you find this blog useful. Please feel free to contact with me in case you have any query, suggestions.  You can comment, like and follow posts.

You can request any topic related to Swift and iOS development.