From 916cc05be4b42c89e465764a03aa1e0991740443 Mon Sep 17 00:00:00 2001 From: Steven Tsao Date: Tue, 19 Nov 2019 11:05:17 -0800 Subject: [PATCH] Update description --- README.md | 2 +- lib/rules/no-get-with-default.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f080047465..833fa95ac3 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ The `--fix` option on the command line automatically fixes problems reported by | | [named-functions-in-promises](./docs/rules/named-functions-in-promises.md) | Enforces usage of named functions in promises | | :white_check_mark: | [new-module-imports](./docs/rules/new-module-imports.md) | Use "New Module Imports" from Ember RFC #176 | | :white_check_mark: | [no-function-prototype-extensions](./docs/rules/no-function-prototype-extensions.md) | Prevents usage of Ember's `function` prototype extensions | -| :car: | [no-get-with-default](./docs/rules/no-get-with-default.md) | Use the `||` operator instead of `getWithDefault` for more expected behaviors | +| :car: | [no-get-with-default](./docs/rules/no-get-with-default.md) | Disallows use of the Ember's `getWithDefault` function | | :car::wrench: | [no-get](./docs/rules/no-get.md) | Require ES5 getters instead of Ember's `get` / `getProperties` functions | | :white_check_mark: | [no-global-jquery](./docs/rules/no-global-jquery.md) | Prevents usage of global jQuery object | | :car: | [no-jquery](./docs/rules/no-jquery.md) | Disallow any usage of jQuery | diff --git a/lib/rules/no-get-with-default.js b/lib/rules/no-get-with-default.js index 37ff8c141f..f4e50e5b28 100644 --- a/lib/rules/no-get-with-default.js +++ b/lib/rules/no-get-with-default.js @@ -2,14 +2,14 @@ const types = require('../utils/types'); -const ERROR_MESSAGE = 'Use `\|\|` or the ternary operator instead of `getWithDefault()`'; // eslint-disable-line no-useless-escape, prettier/prettier +const ERROR_MESSAGE = 'Use `||` or the ternary operator instead of `getWithDefault()`'; module.exports = { ERROR_MESSAGE, meta: { type: 'suggestion', docs: { - description: 'Use the `\|\|` operator instead of `getWithDefault` for more expected behaviors', // eslint-disable-line no-useless-escape, prettier/prettier + description: "Disallows use of the Ember's `getWithDefault` function", category: 'Best Practices', recommended: false, octane: true,