Depends on your eslint config, but yeah that’s an option.
Comment on Golang be like
newIdentity@sh.itjust.works 1 year ago
Isn’t it the same with ES6?
noli@programming.dev 1 year ago
IUsedTo@lemmy.world 1 year ago
I don’t believe so.
newIdentity@sh.itjust.works 1 year ago
peterj74@lemmy.world 1 year ago
That’s from ESLint, not javascript itself. JS doesn’t care about unused variables
jim_stark@programming.dev 1 year ago
JS simply does not care.
Dalinar@lemmy.nz 1 year ago
You’re confusing it with your linter. Java script don’t care.
newIdentity@sh.itjust.works 1 year ago
That’s why I said ESLint