Skip to content

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

@ipanasenko

Description

@ipanasenko

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
  • 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions