Skip to content

Commit

Permalink
Update description
Browse files Browse the repository at this point in the history
  • Loading branch information
steventsao committed Nov 19, 2019
1 parent bb54e16 commit 916cc05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-get-with-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 916cc05

Please sign in to comment.