class Rectangle { constructor(height, width) { this.height = height; this.width = width; this.settings = { 'arbitrary': 'value', 'enabled': true, }; this.test = { foo: 'bar', }; this.arrayOne = [1, 2, 3, 4]; this.arrayTwo = [ 'one', 'two', ]; } // Getter get area() { return this.calcArea(); } // Method calcArea() { return this.height * this.width; } // Arrow function parentheses testArrowFunction() { this.foo(x => { xyz; }); this.foo(x => xyz); this.foo((value, index) => xyz); } } const square = new Rectangle(10, 10); console.log(square.area); // 100

Format Generator v0.1

Paste JavaScript/TypeScript in the editor to the left and we'll generate settings for you on behalf of: prettier and eslint.


Prettier


ESLint Incomplete