Skip to content

Module Imports example does not represent the style guide #17

@5c077yP

Description

@5c077yP

Hey in the section Module Imports it's mentioned to order your imports by:

  1. Standard library imports (if a standard library exists)
  2. Third party library imports
  3. Local imports (imports specific to this application or library)

in the example it's written:
require 'lib/setup'
Backbone = require 'backbone'

But isn't "require 'lib/setup'" a local import and "Backbone = require 'backbone'" a third-party library? If this is correct one should switch the order in the example.

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