esformatter-jquery-chain

Format chained calls with jQuery context specific nesting

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
esformatter-jquery-chain
301.1.09 years ago9 years agoMinified + gzip package size for esformatter-jquery-chain in KB

Readme

esformatter-jquery-chain
Esformatter plugin for formatting member expressions according to the jQuery style guide. Something like this:
element
	.children()
		.bla()
		.blu()
		.parent()
			.height( 300 )
		.end()
	.end()
	.accordion();

Usage

Install it via npm:
npm install esformatter-jquery-chain

Then add it to your esformatter config:
{
  "plugins": [
    "esformatter-jquery-chain"
  ]
}