Skip to content

JavaScript file naming conventions #106

@dextermb

Description

@dextermb

What you would like to change/add

I'd like to proposal a differing opinion from Airbnb's javascript style guide. In their style guide they mention that filenames should match exactly the default export.

But I think that all JavaScript related directories and files should be lowercase and piped.

Why you would like to change/add this

I think it is just a cleaner naming conventions, and how I've always done it in my own projects.

Examples

Airbnb
// LangleyFoxall.js
const LangleyFoxall = () => null

export default LangleyFoxall
Piped
// langley-foxall.js
const LangleyFoxall = () => null

export default LangleyFoxall

Checklist

  • I have checked that this is not a duplicate issue.

Sources

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions