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

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript