Source code

Revision control

Copy as Markdown

Other Tools

# reject-mixing-eager-and-lazy
Rejects defining a lazy getter for a module that's eagerly imported at
top-level script unconditionally.
## Examples of incorrect code for this rule
```js
const { SomeProp } =
ChromeUtils.importESModule("resource://gre/modules/Foo.sys.mjs");
ChromeUtils.defineESModuleGetters(lazy, {
});
```
## Examples of correct code for this rule
```js
const { SomeProp, OtherProp } = ChromeUtils.importESModule(
);
```