Variable binding in Aurelia results in no-undef ESLint error The Next CEO of Stack OverflowESLint - “window” is not defined. How to allow global variables in package.jsonESLint dollar($) is not defined. (no-undef)Is it possible to decorate a react class written as a pure render function?ESLint no-unused-vars and no-undef error but variable is usedeslint: error Parsing error: The keyword 'const' is reservedESLint no-undef on imported element classIgnore specific error for eslint in the whole projectEslint compatible feature exporting in Aurelia?Can I place objects/variables on a React component? (getting ESLint error no-undef)Eslint is throwing `no-undef` while destructuring in a for..of loop

Dominated convergence theorem - what sequence?

0 rank tensor vs 1D vector

Why is quantifier elimination desirable for a given theory?

A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See

Bartok - Syncopation (1): Meaning of notes in between Grand Staff

INSERT to a table from a database to other (same SQL Server) using Dynamic SQL

Would a completely good Muggle be able to use a wand?

Why isn't the Mueller report being released completely and unredacted?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

Why is my new battery behaving weirdly?

How did people program for Consoles with multiple CPUs?

Is it my responsibility to learn a new technology in my own time my employer wants to implement?

Does soap repel water?

When you upcast Blindness/Deafness, do all targets suffer the same effect?

What did we know about the Kessel run before the prequels?

Which one is the true statement?

How many extra stops do monopods offer for tele photographs?

Why does standard notation not preserve intervals (visually)

The exact meaning of 'Mom made me a sandwich'

Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?

How to install OpenCV on Raspbian Stretch?

Proper way to express "He disappeared them"

How to avoid supervisors with prejudiced views?

WOW air has ceased operation, can I get my tickets refunded?



Variable binding in Aurelia results in no-undef ESLint error



The Next CEO of Stack OverflowESLint - “window” is not defined. How to allow global variables in package.jsonESLint dollar($) is not defined. (no-undef)Is it possible to decorate a react class written as a pure render function?ESLint no-unused-vars and no-undef error but variable is usedeslint: error Parsing error: The keyword 'const' is reservedESLint no-undef on imported element classIgnore specific error for eslint in the whole projectEslint compatible feature exporting in Aurelia?Can I place objects/variables on a React component? (getting ESLint error no-undef)Eslint is throwing `no-undef` while destructuring in a for..of loop










2















When using Aurelia's @bindable decorator on a variable in a custom element, ESLint complains that the variable is not defined.



import bindable from "aurelia-framework";

export class Logo
@bindable click; // eslint will error on this line with no-undef

...



I assume the bindable decorator will define the variable in the class, but is there something that should be done to avoid this ESLint error without including an eslint-disable-line no-use-before-define comment on that line?



Running my linter gives me:



/src/resources/elements/logo.js
7:15 error 'click' is not defined no-undef









share|improve this question






















  • try @bindable() click;

    – avrahamcool
    Mar 21 at 21:25











  • @avrahamcool Thanks for the suggestions, but I just tried that and it results in the same eslint error

    – timgcarlson
    Mar 22 at 16:25











  • maybe do @bindable click = undefined;?

    – bigopon
    Mar 23 at 0:00















2















When using Aurelia's @bindable decorator on a variable in a custom element, ESLint complains that the variable is not defined.



import bindable from "aurelia-framework";

export class Logo
@bindable click; // eslint will error on this line with no-undef

...



I assume the bindable decorator will define the variable in the class, but is there something that should be done to avoid this ESLint error without including an eslint-disable-line no-use-before-define comment on that line?



Running my linter gives me:



/src/resources/elements/logo.js
7:15 error 'click' is not defined no-undef









share|improve this question






















  • try @bindable() click;

    – avrahamcool
    Mar 21 at 21:25











  • @avrahamcool Thanks for the suggestions, but I just tried that and it results in the same eslint error

    – timgcarlson
    Mar 22 at 16:25











  • maybe do @bindable click = undefined;?

    – bigopon
    Mar 23 at 0:00













2












2








2








When using Aurelia's @bindable decorator on a variable in a custom element, ESLint complains that the variable is not defined.



import bindable from "aurelia-framework";

export class Logo
@bindable click; // eslint will error on this line with no-undef

...



I assume the bindable decorator will define the variable in the class, but is there something that should be done to avoid this ESLint error without including an eslint-disable-line no-use-before-define comment on that line?



Running my linter gives me:



/src/resources/elements/logo.js
7:15 error 'click' is not defined no-undef









share|improve this question














When using Aurelia's @bindable decorator on a variable in a custom element, ESLint complains that the variable is not defined.



import bindable from "aurelia-framework";

export class Logo
@bindable click; // eslint will error on this line with no-undef

...



I assume the bindable decorator will define the variable in the class, but is there something that should be done to avoid this ESLint error without including an eslint-disable-line no-use-before-define comment on that line?



Running my linter gives me:



/src/resources/elements/logo.js
7:15 error 'click' is not defined no-undef






javascript aurelia eslint






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 21 at 18:05









timgcarlsontimgcarlson

2,2861645




2,2861645












  • try @bindable() click;

    – avrahamcool
    Mar 21 at 21:25











  • @avrahamcool Thanks for the suggestions, but I just tried that and it results in the same eslint error

    – timgcarlson
    Mar 22 at 16:25











  • maybe do @bindable click = undefined;?

    – bigopon
    Mar 23 at 0:00

















  • try @bindable() click;

    – avrahamcool
    Mar 21 at 21:25











  • @avrahamcool Thanks for the suggestions, but I just tried that and it results in the same eslint error

    – timgcarlson
    Mar 22 at 16:25











  • maybe do @bindable click = undefined;?

    – bigopon
    Mar 23 at 0:00
















try @bindable() click;

– avrahamcool
Mar 21 at 21:25





try @bindable() click;

– avrahamcool
Mar 21 at 21:25













@avrahamcool Thanks for the suggestions, but I just tried that and it results in the same eslint error

– timgcarlson
Mar 22 at 16:25





@avrahamcool Thanks for the suggestions, but I just tried that and it results in the same eslint error

– timgcarlson
Mar 22 at 16:25













maybe do @bindable click = undefined;?

– bigopon
Mar 23 at 0:00





maybe do @bindable click = undefined;?

– bigopon
Mar 23 at 0:00












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286667%2fvariable-binding-in-aurelia-results-in-no-undef-eslint-error%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286667%2fvariable-binding-in-aurelia-results-in-no-undef-eslint-error%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현