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.

Add package to auto group

See original GitHub issue

Would be cool to have a separate package that allows grouping with empty lines.

a {
  position: relative;
  box-sizing: inherit;
}

becomse:

a {
  position: relative;

  box-sizing: inherit;
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
stormwarningcommented, Oct 29, 2021

I’ll look into how I can make this easier in this package 👍

1reaction
muuvmuuvcommented, Oct 29, 2021

Update my config again:

module.export = { rules: {
    'declaration-empty-line-before': [
      'always',
      {
        except: ['first-nested'],
        ignore: ['after-declaration', 'after-comment', 'inside-single-line-block'],
      },
    ],
    'order/properties-order': [
      recess.rules['order/properties-order'].map((group) => ({
        ...group,
        emptyLineBefore: 'always',
        noEmptyLineBetween: true,
      })),
      {
        unspecified: 'bottomAlphabetical',
        emptyLineBeforeUnspecified: 'always',
      },
    ],
    'order/order': [
      [
        // Imports
        { type: 'at-rule', name: 'import' },

        // Inheritance
        { type: 'at-rule', name: 'extend' },
        { type: 'at-rule', name: 'apply' },

        // SCSS Variables
        'dollar-variables',

        // Declarations
        'declarations',

        // CSS Variables
        'custom-properties',

        // Mixins
        { type: 'at-rule', name: 'include' },
        { type: 'at-rule', name: 'mixin' },
        { type: 'at-rule', name: 'add-mixin' },

        // Pseudo-elements
        {
          type: 'rule',
          selector: /^&::[\w-]+/,
          hasBlock: true,
        },

        // Nested Rules
        'rules',

        // Pseudo-classes
        {
          type: 'rule',
          selector: /^&:[\w-]+/,
          hasBlock: true,
        },

        // Nested extending rules
        {
          type: 'rule',
          selector: /^&/,
          hasBlock: true,
        },

        // Media Queries
        { type: 'at-rule', name: 'media', hasBlock: true },
      ],
      {
        unspecified: 'bottom',
      },
    ]
} }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Use Group Policy to remotely install software - Windows Server
This article describes how to use Group Policy to automatically distribute ... Copy or install the package to the distribution point.
Read more >
Auto import | IntelliJ IDEA Documentation - JetBrains
In the Exclude from auto-import and completion section, click the Add button Alt+Insert , and specify a class or a package that you...
Read more >
FTC Takes Action Against Multistate Auto Dealer Napleton for ...
(also known as Ed Napleton Automotive Group) alleges that eight of its dealerships and the general manager of two Illinois dealerships illegally ...
Read more >
Shults Auto Group: Your New & Used Vehicle Headquarters
Get a great deal on your next new or used car, truck, or SUV from your local Shults Auto Dealership. Our dealerships serve...
Read more >
Crossroads Auto Group | Shop Thousands of New and Used ...
Crossroads Cars of Apex, NC NC serving Prince George, VA , Indian Trail, NC, Wake Forest, NC Lumberton, NC is one of the...
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