Comments (3)
The documentation is maybe not that clear about this. But the intent was that if you have a controller, you should alias your model there. But if you don't have a separate controller, but rather a simple setupController()
in route, then you can set it there (it will be not checked though, it's still a legit rule that you can follow). If you however would like to use model
property on your controller, then in your case you should probably disable this rule in this controller using /* eslint-disable ember/alias-model-in-controller */
, or globally in .eslintrc.js
.
from eslint-plugin-ember.
I think disabling the rule in specific controller is reasonable in that case. Thanks for response 👍
from eslint-plugin-ember.
No problem :)
from eslint-plugin-ember.
Related Issues (20)
- <template> tag parsing issue in templates shorter than 3 characters HOT 1
- Provide a way to enable `gjs`/`gts`/`<template>` tag processing without extending `plugin:ember/recommended` HOT 5
- <template> tag + eslint-plugin-sort-class-members (and possibly other plugins) HOT 1
- New rule to lint against referencing `let` variables in `<template>` HOT 1
- New Rule: no-render-modifiers
- New lint: potential bug with assigning a value to a tracked property
- new lint: do not use 'this' in tests in gjs/gts files
- New lint: prevent usage of `Input` and `Textarea` (the ember default components) HOT 3
- [email protected] detects single-line components as zero-line components HOT 3
- Parsing error for template tags within classes on v11.11.0 HOT 6
- Drop Recommended Rules for Deprecated Ember 3.x Features HOT 2
- Replace ember-template-imports with content-tag HOT 2
- New rule proposal: require-components-imports-pascal-case HOT 2
- config files in readme should not encourage top level config. overrides only.
- ESLint couldn't find the config "plugin:ember/gts-recommended" to extend from HOT 4
- false positives for `no-unused-vars` in `gjs` files, when using `<Component as |something|>` HOT 3
- gjs/gts Incorrect token mapping after handlebars HOT 1
- Support "Type aware" linting for gts files HOT 13
- "service" import not treated the same as "inject as service" HOT 1
- no-unused-expressions HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-ember.