web-configs
web-configs copied to clipboard
prefer-module-scope-constants - report screaming function arguments
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 Requestlabel 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.
- [ ] Tag it with the
-
Is it related to a new package?
- [ ] Tag it with the
New packageLabel
- [ ] Tag it with the
Checklist
- [ ] Please delete the labels section before submitting your issue
- [ ] I have described this issue in a way that is actionable (if possible)