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

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?