Comments (3)
I'm not sure minimumLines
option is viable.
What it should do if there less properties than minimumLines
? Ignore emptyLineBefore
for this group or revert it?
If emptyLineBefore
will be ignored, with a config above this won't be considered as warning:
p {
position: relative;
display: block;
font-family: sans-serif;
}
p {
position: relative;
display: block;
font-family: sans-serif;
}
If emptyLineBefore
will be reverted, with a config above this won't be considered as warning:
p {
position: relative;
display: block;
font-family: sans-serif;
}
This will be a warning:
p {
position: relative;
display: block;
font-family: sans-serif;
}
With the following config and if emptyLineBefore
will be reverted:
{
"minimumLines": 2,
"emptyLineBefore": "never",
"properties": [
"position",
"display"
]
},
{
"minimumLines": 2,
"emptyLineBefore": "never",
"properties": [
"font",
"color"
]
}
The following patterns are considered warnings:
p {
position: relative;
display: block;
font-family: sans-serif;
}
The following patterns are not considered warnings:
p {
position: relative;
display: block;
font-family: sans-serif;
}
from stylelint-order.
Maybe it should just be ignored, so it's allowed to skip the empty line but it will be no error with the empty line?
from stylelint-order.
Sorry, this feature will never be implemented, because of rare use cases and it will lead to increased code complexity without real benefits.
from stylelint-order.
Related Issues (20)
- at-rules now also matches @import/@use HOT 4
- Define an order to set any variables (scss or custom properties) first. HOT 3
- Define a skeleton for what is defined inside a selector HOT 1
- V15 support? HOT 1
- Getting error after update to 6.0.2 HOT 5
- It does not order elements inside styled components function. HOT 4
- tailwind specific order HOT 3
- Autofix not working HOT 3
- How to setup @apply Tailwind HOT 1
- Ignore the style declaration order declared in the top level of Vue
- Ignore sorting of property 'all' HOT 1
- package doesn't work with my vue project HOT 1
- add support to stylelint 16 bro
- Support stylelint16 HOT 1
- 6.0.4 and Stylelint 16: `Unknown rule csstools/use-logical` HOT 2
- --fix removes $ from SASS variables
- Support Glob or Regex in Properties' Order HOT 1
- `properties-order` seems to be ignored when `properties-alphabetical-order` is also set. HOT 2
- Update commonjs to esm HOT 2
- Πne CSS property in different contexts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylelint-order.