question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sort order fallback: Add `yandex`, `zen` and `csscomb`

See original GitHub issue

From discussion with @matmuchrapna:

Allow using sort orders from predefined configs as sort-order-fallback option. For example:

{
  "always-semicolon": true,
  "sort-order": ["color", "..."],
  "sort-order-fallback": "yandex"
}
// Before
a {
  left: 0;
  color: 0;
  top: 0;
}

// Before
a {
  color: 0;
  top: 0;
  left: 0;
}

<bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/3961833-sort-order-fallback-add-yandex-zen-and-csscomb?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github). </bountysource-plugin>

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
abhishekdevcommented, Sep 3, 2015

👍

How about just adding a preset option to get all values from a predefined configuration and then extend it with the user defined values. Very similar to jscs presets

example:

{
    "preset": "zen",
    "always-semicolon": true,
    "color-case": "lower",
    "block-indent": "    ",
    "quotes": "double",
    "sort-order-fallback": "abc",
}

This not only solves sort order fallback but allows end user to leverage all existing configs with just a few tweaks to match their taste.

0reactions
iegikcommented, Feb 9, 2016

preset +1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Sort order fallback: Add `yandex`, `zen` and `csscomb` -
Sort order fallback : Add `yandex`, `zen` and `csscomb` ... Allow using sort orders from predefined configs as sort-order-fallback option. For example:
Read more >
Use csscomb for VS Code - Stack Overflow
1 Answer 1 · Go to File > Preferences > Keyboard Shortcuts · Click the link at the top to edit keybindings.json ·...
Read more >
New option: Space between sort groups · Issue #314 - GitHub
Is it possible to remove the new-line separator between sort groups? You need to define sort-order array with all properties being in one...
Read more >
CSScombについてのおさらい - Qiita
CSScomb is a coding style formatter for CSS. You can easily write your own configuration to make your style sheets beautiful and consistent....
Read more >
CSScomb: Sorting CSS Properties, The Better Way
This time we present **CSScomb**, a tool to help you sort and categorize ... developing CSScomb, I took the default sort order from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found