6 - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get
7 - https://leanpub.com/understandinges6/read/#leanpub-auto-accessor-properties
12 The get syntax binds an object property to a function that will be called when that property is looked up. It was first introduced in ECMAScript 5:
21 Object.defineProperty(p, "age", {
28 Note that every `getter` is expected to return a value.
32 This rule enforces that a return statement is present in property getters.
34 Examples of **incorrect** code for this rule:
39 /*eslint getter-return: "error"*/
47 Object.defineProperty(p, "age", {
62 Examples of **correct** code for this rule:
67 /*eslint getter-return: "error"*/
75 Object.defineProperty(p, "age", {
92 This rule has an object option:
94 * `"allowImplicit": false` (default) disallows implicitly returning `undefined` with a `return` statement.
96 Examples of **correct** code for the `{ "allowImplicit": true }` option:
101 /*eslint getter-return: ["error", { allowImplicit: true }]*/
104 return; // return undefined implicitly.
111 ## When Not To Use It
113 If your project will not be using ES5 property getters you do not need this rule.