Skip to content

Instantly share code, notes, and snippets.

@sindresorhus
Created July 31, 2012 14:43
Show Gist options
  • Save sindresorhus/3217507 to your computer and use it in GitHub Desktop.
Save sindresorhus/3217507 to your computer and use it in GitHub Desktop.
JSHint options

My recommended JSHint options

JavaScript:

{
	node: true,
	browser: true,
	es5: true,
	esnext: true,
	bitwise: true,
	curly: true,
	camelcase: true,
	eqeqeq: true,
	immed: true,
	indent: 4,
	latedef: true,
	newcap: true,
	noarg: true,
	quotmark: 'single',
	regexp: true,
	undef: true,
	unused: true,
	strict: true,
	trailing: true,
	smarttabs: true
}

JSON:

{
	"node": true,
	"browser": true,
	"es5": true,
	"esnext": true,
	"bitwise": true,
	"camelcase": true,
	"curly": true,
	"eqeqeq": true,
	"immed": true,
	"indent": 4,
	"latedef": true,
	"newcap": true,
	"noarg": true,
	"quotmark": "single",
	"regexp": true,
	"undef": true,
	"unused": true,
	"strict": true,
	"trailing": true,
	"smarttabs": true
}
@sdadrianalvarez
Copy link

Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment