You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\yigal\nitro\main\src\nitro_widgets.ts:105:7 lint/style/noVar FIXABLE ━━━━━━━━━━━━━━━━━━━
! Use let or const instead of var.
103 │ const ctl={
104 │ onchange(evt:Event){
> 105 │ var target=evt.target
│ ^^^^^^^^^^^^^^^^^^^^^
106 │ if (isHTMLInputElement(target)){
107 │ const target_value=target.checked
i A variable declared with var is accessible in the whole body of the function. Thus, the variable can be accessed before its initialization and outside the block where it is declared.
i See MDN web docs for more details.
i Unsafe fix: Use 'const' instead.
103 103 │ const ctl={
104 104 │ onchange(evt:Event){
105 │ - ······var·target=evt.target
105 │ + ······const·target=evt.target
106 106 │ if (isHTMLInputElement(target)){
107 107 │ const target_value=target.checked
The number of diagnostics exceeds the number allowed by Biome.
Diagnostics not shown: 23.
Checked 81 files in 134ms. No fixes applied.
Found 42 warnings.
Expected result
fixed fixxable errors
Code of Conduct
I agree to follow Biome's Code of Conduct
The text was updated successfully, but these errors were encountered:
Environment information
What happened?
running
npx biome lint --write .
has no effectExpected result
fixed fixxable errors
Code of Conduct
The text was updated successfully, but these errors were encountered: