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