Skip to content

app: sort es6 imports #789

@jorgeorpinel

Description

@jorgeorpinel

Currently there's not much order in js file imports. Some files group them with comments or spaces in between e.g.

https://github.com/iterative/dvc.org/blob/9c8cc540cfbd004db9ac3747bd56b6ddc328ed24/pages/doc.js#L3-L24

or

https://github.com/iterative/dvc.org/blob/9c8cc540cfbd004db9ac3747bd56b6ddc328ed24/src/Documentation/SidebarMenu/SidebarMenu.js#L1-L14

I suggest we remove all these comments, which don't really add any value, and apply this ESLint rule: https://eslint.org/docs/rules/sort-imports

Metadata

Metadata

Assignees

Labels

A: docsArea: user documentation (gatsby-theme-iterative)status: researchWriting concrete steps for the issuewebsite: eng-docDEPRECATED JS engine for /doc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions