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
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
add a comment |
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
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
add a comment |
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
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
javascript aurelia eslint
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
add a comment |
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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