Skip to content

Can We Stick to a Common Definition Name Casing? #9716

@TeamworkGuy2

Description

@TeamworkGuy2

I've noticed a few new definitions aren't following the accepted[1] lower-dash-casing used by the previous ~1800 definitions, specifically:

When I started using DefinitelyTyped definitions, I thought it was a little odd that some library names where different from their 'official' name to match the lower-dash-casing convention, but it makes a lot of sense now that I've used DT for a while. For example, when I'm adding JQuery typings to a project I don't need to remember if it's 'JQuery' or 'jQuery' or 'Jquery', I know everything in DT is lower case, so it must be 'jquery'. This lightens the mental complexity.

I think the current 1800 projects make a good precedent for sticking with one convention.
Would you guys (DT contributors/admins and community feedback) be okay with pull requests renaming the above mentioned definitions using the common dash-casing naming convention?


[1]The DT Contribution guide isn't explicit about using a specific convention. It does recommend lowercase:

Naming the file
Try to use a simple lowercase identifier as name of the definition file, like library.d.ts or node-hoge.d.ts. To keep naming conflicts to a minimum please use the package name as used in the npm package registry. The only exception here should be NuGet / Windows oriented code as they use a camel-case convention.
[...]
Location
The typing must be placed in a folder. The folder name must be similar to library name.
Example: qunit.d.ts in in a folder named qunit

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