eslint-config-proper

ESLint config for JS Proper Format


Keywords
js, eslint, lint, config, proper, format
License
MIT
Install
npm install eslint-config-proper@0.1.3

Documentation

Proper Format

A style guide for modern JavaScript

Usage

Install the eslint config module:

npm install -D eslint-config-proper

and update package.json:

{
	"eslintConfig": {
		"extends": "proper"
	}
}

Rules

  • Semicolons required – No worrying about "gotchas"
  • Indent with tabs
  • Single quotes – except to avoid escaping
  • No unused variables
  • Spaces after keywords – if (condition) { ... }
  • No spaces after function namefunction foo(bar) { ... }
  • and more...