Skip to content

naming-convention: Object properties are not linted #110

@funky-jojo

Description

@funky-jojo

I have rules that set the naming-convention to camelCase by default, but it does not work for object variables.

Example: The Test name should be flagged as a rule violation, but it is not.

        let foo = {
            Test: ""
        };

        let a = foo.Test;

Here is the rule I am using:

{"type": "default", "format": "camelCase", "leadingUnderscore": "forbid", "trailingUnderscore": "forbid"},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions