Skip to content

How to specify emptyLineBefore to never #8

@cenfun

Description

@cenfun

Thanks for the project.

Currently, the emptyLineBefore default to always. How to specify emptyLineBefore to never? possible reason:

  • emptyLineBefore=always conflicts with rule 'declaration-empty-line-before' in stylelint-config-standard
  • I prefer to emptyLineBefore=never because the count of css properties will less than 5 in most cases, the group emptyLineBefore is not necessary especially using SCSS.

What do you think of following solution

// .stylelintrc.js
const { propertyOrderingWithOptions } = require('stylelint-semantic-groups');

module.exports = {
  plugins: ['stylelint-order'],
  rules: {
    'order/properties-order': propertyOrderingWithOptions({ emptyLineBefore: 'never' })
  },
};

thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions