Skip to content

No way to create an object with underscored keys #209

@bouk

Description

@bouk

With our current eslint rules, there's no way to do

a = JSON.stringify({
  some_prop: 1
});

because we need all identifiers to be camelcase. We could set http://eslint.org/docs/rules/camelcase to { "properties": "never" }, but that would make it legal to have underscored properties in classes too.

We could tell people to just ignore the rule selectively, but that's kind of gross and defeats the purpose

what do??

@lemonmade @matthelm

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