Skip to content

Releases: IoraHealth/eslint-plugin-chirp-test-rules

Object with dots in the key names

07 Sep 16:14
1d9c3fe
Compare
Choose a tag to compare

Check if an object literal has any keynames containing a dot. (object-keynames-with-dots)

This rule was written after a bug surfaced in Ember 3.8 where the "each-in" function got screwed up if an object literal contained a key with a string literal that has a dot, such as {"x.y": 3}. This is a very simple check to identify any instances of such notation.

Rule Details

This rule aims to...

Examples of incorrect code for this rule:

const OPTIONS = {
  "hello.world": "foo bar"
};

Examples of correct code for this rule:

const OPTIONS = {
  "hello": {
    "world": "foo bar"
  }
};

find deprecated wait test helper

07 Sep 13:57
Compare
Choose a tag to compare

Deprecated 'wait' ember test helper

Rule Details

The 'wait' function from the library 'ember-test-helpers/wait' is outdated.
We should now use "import { settled } from '@ember/test-helpers';"

Examples of incorrect code for this rule:

import wait from 'ember-test-helpers/wait';

Update the author to "Iora Health"

11 Feb 21:51
Compare
Choose a tag to compare
v1.4.1

Update the author to Iora Health