Skip to content

Commit

Permalink
1.update category.
Browse files Browse the repository at this point in the history
2.update comments.
  • Loading branch information
aladdin-add committed May 8, 2017
1 parent 963e3c3 commit 2272cbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rules/getter-return.js
Expand Up @@ -47,7 +47,7 @@ module.exports = {
meta: {
docs: {
description: "enforce `return` statements in getters",
category: "Best Practices",
category: "Possible Errors",
recommended: false
},
fixable: null,
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/rules/getter-return.js
Expand Up @@ -18,14 +18,14 @@ const RuleTester = require("../../../lib/testers/rule-tester");

const ruleTester = new RuleTester();

// TODO: data is not working, so specify a name: "getter 'bar'"
// data is not working, so specify a name: "getter 'bar'"
const name = "getter 'bar'";
const noReturnMessage = `Expected to return a value in ${name}.`;
const noLastReturnMessage = `Expected to return a value at the end of ${name}.`;
const parserOptions = { ecmaVersion: 6 };
const options = [{ noImplicit: true }];

ruleTester.run("enforce-return-in-getter", rule, {
ruleTester.run("getter-return", rule, {

valid: [

Expand Down

0 comments on commit 2272cbf

Please sign in to comment.