helixbass / eslint-plugin-coffee

ESLint rules for linting Coffeescript source files
MIT License
24 stars 2 forks source link

coffee/no-unused-vars bug #67

Open edemaine opened 3 years ago

edemaine commented 3 years ago

The following code:

window.requestAnimationFrame frame = (ms) ->
    window.requestAnimationFrame frame

generates the following lint error:

error  'frame' is assigned a value but never used  coffee/no-unused-vars

I guess the use of frame within the inner scope incorrectly doesn't count as a use?