Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nested classes case in no-ember-super-in-es-classes #2071

Merged
merged 5 commits into from
Feb 13, 2024

Conversation

CvX
Copy link
Contributor

@CvX CvX commented Jan 24, 2024

This rule was incorrectly failing on the following code:

class Foo {
  bar() {
    Baz.reopen({
      quux() {
        this._super();
      },
    });
  }
}

This rule incorrectly fails on the following code:

```js
class Foo {
  bar() {
    Baz.reopen({
      quux() {
        this._super();
      },
    });
  }
}
```
@bmish bmish added the Bug label Jan 24, 2024
@CvX CvX changed the title A failing test for no-ember-super-in-es-classes (nested classes) Fix nested classes case in no-ember-super-in-es-classes Feb 1, 2024
@CvX
Copy link
Contributor Author

CvX commented Feb 1, 2024

Added a fix that checks for nested function bodies.

@bmish bmish changed the title Fix nested classes case in no-ember-super-in-es-classes Fix nested classes case in no-ember-super-in-es-classes Feb 13, 2024
@bmish bmish merged commit 4326b03 into ember-cli:master Feb 13, 2024
8 checks passed
@bmish
Copy link
Member

bmish commented Feb 13, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants