web-configs icon indicating copy to clipboard operation
web-configs copied to clipboard

prefer-module-scope-constants - report screaming function arguments

Open ipanasenko opened this issue 6 months ago • 0 comments

Overview

Good afternoon. I quite like the rule prefer-module-scope-constants, but I think it misses reporting of function arguments. Do you think it's something worth looking into?

This should probably be an error:

function myFunction(MY_VALUE) {}

Type

  • [ ] New feature
  • [x] Changes to existing features

Labels

  • [ ] Add the Type: Feature Request label to this issue.

Area

  • [ ] Add any relevant Area: <area> labels to this issue

Scope

  • Is this issue related to a specific package?

    • [ ] Tag it with the Package: <package_name> label.
  • Is it related to a new package?

    • [ ] Tag it with the New package Label

Checklist

  • [ ] Please delete the labels section before submitting your issue
  • [ ] I have described this issue in a way that is actionable (if possible)

ipanasenko avatar Jul 23 '25 14:07 ipanasenko