environment
array of .deepsource.toml
. Read more in our documentation https://deepsource.io/docs/analyzer/javascript 56 }
57 else if(selectedAdj == 'baddebt'){
58 $('.adjhide').hide();
59 $('.baddebt-area').slideDown(); 60 }
61 // else if(selectedAdj == 'prodebt'){
62 // $('.adjhide').hide();
236 "receivables");
237
238})
239document.getElementById('advance_btn').addEventListener(type='click',()=>{240 doAdjustment(
241 document.getElementById('ID_advance').value,
242 document.getElementById('textarea_advance').value,
227 "payments");
228
229})
230document.getElementById('Receivables_btn').addEventListener(type='click',()=>{231 doAdjustment(
232 document.getElementById('ID_receivables').value,
233 document.getElementById('textarea_receivables').value,
218 "accrual");
219
220})
221document.getElementById('prepayments_btn').addEventListener(type='click',()=>{222 doAdjustment(
223 document.getElementById('ID_prepayment').value,
224 document.getElementById('textarea_prepayment').value,
209 });
210}
211
212document.getElementById('accrual_btn').addEventListener(type='click',()=>{213 doAdjustment(
214 document.getElementById('ID_accrual').value,
215 document.getElementById('textarea_accrual').value,
Variables that aren't defined, but accessed may throw reference errors at runtime.
Potential ReferenceError
s may result from misspellings of variable and parameter names, or accidental implicit globals (for example, forgetting the var
keyword in a for
loop initializer).
Any reference to an undeclared variable causes a warning, unless the variable is explicitly mentioned in a /*global ...*/
comment, or specified in the globals key in the configuration file.
A common use case for these is if you intentionally use globals that are defined elsewhere (e.g. in a script sourced from HTML).
const foo = someFunction();
const bar = a + 1; // 'a' is undeclared
/*global someFunction, a*/
/*eslint no-undef: "error"*/
const foo = someFunction();
const bar = a + 1;