-
Notifications
You must be signed in to change notification settings - Fork 30.5k
Description
I've noticed a few new definitions aren't following the accepted[1] lower-dash-casing used by the previous ~1800 definitions, specifically:
- CybozuLabs-md5 (@pine)
- DataStream.js (@Tatx)
- FileSaver (@cyrilschumacher) - npm 'file-saver'
- Finch (@DavidSichau) - npm 'finchjs'
- Headroom (@hakubo)
- HubSpot-pace (@borislavjivkov)
- JSONStream (@Bartvds) - npm 'JSONStream'
- PayPal-Cordova-Plugin (@Justin-Credible)
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