Skip to content

New rule: module name should match module argument name #96

@xman85

Description

@xman85

define(["./cart", "./inventory"], function(cart, inventory) {

Pretty self-explanatory: "./cart" -> cart, "./inventory" -> inventory.
The motivation is this: when I see "inventory" module variable in the code, I want to quickly navigate to the file where it's defined, and if filename doesn't match variable name it's annoying.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions