Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

esformatter-jquery-chain

jzaefferer16MIT1.1.0

Format chained calls with jQuery context specific nesting

esformatter, esformatter-plugin

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"
  ]
}