import-sort-style-capital
Capital style for import-sort.
Credits
This style is just a fork of import-sort-style-retino.
Sorting Example
// Modules that start with 'react';;// Other Modules;; // Modules starting with capital letter; // Siblings and parents;;; // Imports without members
Usage
These instrutions use prettier, which is my preferred method of enforcing import sort order.
# Install prettier-plugin-import-sort yarn add -D prettier-plugin-import-sort # Install import-sort-style-capital yarn add -D import-sort-style-capital
Then add on your root package.json
:
Development
I've used yarn, and tsdx, which provides scaffolding for TypeScript libraries.
# Install yarn, if you don't have it curl -o- -L https://yarnpkg.com/install.sh | bash # Install dependencies yarn install # Build upon changes (development mode) yarn run dev # Lint code yarn run lint # Test code yarn run test # Build code yarn run build