0.1.0 • Published 8 years ago

proper-format v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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...