Linting

Generally, static analysis of code to:

Enforce

Find Possible

Encourage

Errors

Best Practices

Style Consistency

ESLint Features

Pluggable

Custom Rules

Custom Formatters

Custom Parsers

Rules

Turn on or off

Set to warn or error

"Agenda Free"

ES6 / ES7 Syntax

Integrations

Editors

(Sublime Text, Atom, vim, Emacs, JetBrains, etc.)

Build Tools

(Grunt, Gulp, Broccoli, mocha-eslint, npm, etc.)

NPM downloads

(via npm-stat.com)

JSHint

ESLint

April 2015:

1,690,199

April 2015:

185,587

Getting Started

# Install

$ npm install -g eslint
# Setup Config

$ eslint --init
# Start Linting

$ eslint test.js test2.js

ESLint

By Ian VanSchooten

ESLint

A 5 minute introduction to the ESLint JavaScript linter, from someone who likes to use it.

  • 1,386