import-sort-style-delicious
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "import-sort-style-delicious", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">= 8.6" |
@@ -11,3 +11,3 @@ # import-sort-style-delicious | ||
| -------------- | ------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `customGroups` | Array | `[]` | Lets you split main-order categories in several groups: first the one that wouldn’t match any of your custom groups, then one for each group, in the specified order. Groups are defined by either string prefixes or regexes. | | ||
| `customGroups` | Array or String | `[]` | Lets you split main-order categories in several groups: first the one that wouldn’t match any of your custom groups, then one for each group, in the specified order. Groups are defined by either string prefixes or regexes. If you need a single group, you can drop the surrounding brackets and use a single string or regexp. | | ||
| `mainOrder` | Array of category keys | `['bare', 'absolute', 'relative']` | Bare imports use no local specifier, they’re just for side-effects (there is no `from` part). Absolute imports target Node-core or `node_modules`-based modules, whilst relative imports are “project-local” and start with either `./` or `../`. Should you not wish to distinguish between absolute and relative, the `'regular'` keyword merges both. | | ||
@@ -14,0 +14,0 @@ | `sortStyle` | `'natural'` or `'unicde'` | `'natural'` | Natural ordering uses `String#localeCompare`, which gives more natural-feeling results (e.g. case is usually folded, and diacritics don’t end up last). Unicode ordering is lexicographical: it follows the codepoint positions in the Unicode table. | |