question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New Octane Rule: `no-classic-classes`

See original GitHub issue

Pulled from https://github.com/ember-cli/eslint-plugin-ember/issues/533 which proposes a new set of rules for Octane related best practices

Disallow “classic” classes preferring use of native JS classes

// ### Good
export default class MyComponent extends Component {
  ...
}

// This mixin usage should be okay
export default class MyService extends Service.extends(Evented) {
  ...
}

// ### Bad
export default Component.extend({
  ...
});

If anyone would like to implement this please comment that you’ll take it and work away.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
patocallaghancommented, Oct 21, 2019

Unfortunately I don’t have admin rights to do that. @bmish could you assign this issue please?

0reactions
alexlafrosciacommented, Oct 21, 2019

I’m happy to take this one on – @patocallaghan can you set me as the “assignee”? It’s helpful when browsing the issues and seeing which new rules are yet un-claimed!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduce an `octane` configuration · Issue #533 · ember-cli ...
Recently ember-cli-template introduced an octane configuration which guides users to use new Octane patterns over classic component patterns.
Read more >
The Octet Rule - Chemistry LibreTexts
The octet rule refers to the tendency of atoms to prefer to have eight electrons in the valence shell. When atoms have fewer...
Read more >
The Octet Rule: Help, Definition, and Exceptions - YouTube
The Octet Rule is a general rule that is used to describe chemical bonding and draw Lewis Structures. The rule states that Main...
Read more >
Octet Rule – Easy Hard Science - Learn With Dr. Scott
The octet rule is a concept in chemistry. It allows us to determine the atomic structure of most chemicals. The octet rule is...
Read more >
Octet rule - Wikipedia
The octet rule is a chemical rule of thumb that reflects the theory that main-group elements tend to bond in such a way...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found