dai-shi / es-beautifier

[NOT MAINTAINED] ECMAScript beautifier based on eslint
https://www.npmjs.com/es-beautifier
MIT License
120 stars 7 forks source link

chained function call is not beautified #8

Open dai-shi opened 7 years ago

dai-shi commented 7 years ago

Given the code:

funcAAAAAAAAAAAA1().funcAAAAAAAAAAAA2().funcAAAAAAAAAAAA3().funcAAAAAAAAAAAA4().funcAAAAAAAAAAAA5().funcAAAAAAAAAAAA6();

Expected:

funcAAAAAAAAAAAA1() 
  .funcAAAAAAAAAAAA2()
  .funcAAAAAAAAAAAA3()
  .funcAAAAAAAAAAAA4()
  .funcAAAAAAAAAAAA5()
  .funcAAAAAAAAAAAA6();
dai-shi commented 7 years ago

There's a rule http://eslint.org/docs/rules/newline-per-chained-call, but it's' not fixable.