formatting - Adding new line between objects and comments in Prettier or ESLint -


i use vs code prettier , eslint installed. wonder whether can have rules these:

  1. adding new line between end of code block , comment(in types of files - html, css, js etc):
        //comment         function make() {           dosomething();         }         //formatter adds line separate bracket above comment below         //comment         function make() {           dosomething();         } 
  1. similar rule objects , nested objects without comments:
const obj = {      prop: {     foo: 'bar'     },      prop2: {     foo: 'bar'     }  } 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -