Releases: IoraHealth/eslint-plugin-chirp-test-rules
Releases · IoraHealth/eslint-plugin-chirp-test-rules
Object with dots in the key names
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
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"
v1.4.1 Update the author to Iora Health