Tech

ESLint : best linter for Javascript Environment

I am not so big a fan for linters while developing apps. Recently stumbled on ESLint. Its a big Wow! The rules they have created and the classifications are very detailed.

“But What is a ‘Linter/Lint software’ anyways ?”

the Wikians say: lint or a linter is any tool that flags suspicious usage in software written in any computer language. … Lint as a term can also refer more broadly to syntactic discrepancies in general, especially in interpreted languages like JavaScript and Python.

If you want to restrict yourself to write a better piece of code (who wouldn’t want it) in a scripting language, as they lack compilers to do that, one can use a Lint Software or Linter. You can configure the rules in the linter configuration for a specific project/workspace by adding rules and action in a config file. ESLint is a pluggable lint utility for Javascript. ESLint has a very detailed list of rules to configure for your workspace.

And if you are lazy to add the rules by yourself you have a very cool online builder to do that. So, what is the delay start Linting.

ESLint website : http://eslint.org/ see the list of rules they offer and the categories.

ESLint rules builder : http://rapilabs.github.io/eslintrc-generator/ 

 

Share and Enjoy !

Shares
Tagged , , ,