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.

Introduce an `octane` configuration

See original GitHub issue

Recently ember-cli-template introduced an octane configuration which guides users to use new Octane patterns over classic component patterns.

https://github.com/ember-template-lint/ember-template-lint/blob/e10fed889cb6a17fd4d3cffbaa17fbbbbd46e813/lib/config/octane.js

We should introduce the same here for eslint-plugin-ember. I’d be happy to put together a PR introducing the config but we should figure out:

  1. What rules should be included in the config
  2. What rules are we currently missing?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
rwjbluecommented, Oct 7, 2019

Some possible ideas:

  • disallow using actions hash (favoring instead, @action or foo: action(function() {}))
  • disallow “classic” classes (preferring native class)

@chancancode / @pzuraq / @Turbo87 / @bmish - Thoughts?

3reactions
patocallaghancommented, Oct 10, 2019

So collating this list from the above comments we have:

  • disallow using actions hash (favoring instead, @action or foo: action(function() {}))
  • disallow “classic” classes (preferring native class)
  • disallow didInsertElement/willDestroyElement() (in favor of modifiers in general)
  • only-tagless-components (allows @glimmer/component base class, or tagName: '' if @ember/component)
  • disallow @ember/component base class
  • enforce component colocation

Two I was thinking of were:

  • “no computed properties in native classes”, i.e. always use @tracked
  • Similar to the only-tagless-components idea above but instead being no classic components at all

I guess if there is agreement that all of these rules are useful I could create issues for each of them and myself and possibly others could work through the list. Then at the end figure out what needs to go into the actual octane config file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introducing ALM Octane - ADM Help Centers
ALM Octane is a web-based application lifecycle management platform that ... users can work with ALM Octane, the admin needs to perform initial...
Read more >
Laravel Octane
This is going to publish the Octane configuration file, as well as add rr - the RoadRunner binary, to the .gitignore file.
Read more >
How to Learn Octane: The Ultimate Octane Tutorial (2022)
To install Octane, log into your Otoy account, download the application, and run the installer. Launch the app, and you'll be asked to...
Read more >
Laravel Octane - Laravel - The PHP Framework For Web ...
Introduction; Installation; Server Prerequisites ... When this configuration value is set to true , Octane will instruct Laravel to prefix all generated ...
Read more >
Getting Started with Octane for Cinema 4D
This can be changed to the default C4D color picker by clicking the Settings (gear) icon in the Live Viewer, then going to...
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