Comments (2)
I think that the prevalence of non-standard at-rules to extend CSS capabilities, in preprocessors and PostCSS plugins, means this rule should not be included in stylelint-config-standard.
from stylelint-config-standard.
@stefanfrede Thanks for the heads up.
I don't think there a 100% clear right thing do here. at-rule-no-unknown
is a useful rule for everyone writing current or future (using certain PostCSS plugins) CSS.
In previous version of the this config we added other *-no-unknown
rules:
selector-pseudo-class-no-unknown
selector-element-class-no-unknown
selector-type-no-unknown
unit-no-unknown
So, adding at-rule-no-unknown
felt consistent.
However, I understand adding at-rule-no-unknown
does force people who use language extensions (either via a preprocessor like SCSS or via language extension PostCSS plugins), to extend the config and make use of at-rule-no-unknown
's ignoreAtRules: []
option. But they only have to do that if they use at-rule based language extensions like @mixin
.
So, I guess it comes down to whether we think this config should prioritises standard CSS language features over language extensions, or the other way around? And how important is consistency when deciding what rules are included? While keeping in mind that the config is extendable and rules like at-rule-no-unknown
can be easily turned off or tweaked.
I'm going to label this as a discussion so we can hear a few more opinions before making a decision.
In the meantime:
I'll update the "Extending the config" example to include this rule.- Feel free to use
at-rule-no-unknown
'signoreAtRules: []
option.
from stylelint-config-standard.
Related Issues (20)
- Stylelint peer dependencies in not up to date HOT 1
- Add import-notation HOT 1
- Add keyframe-selector-notation HOT 3
- Add SVG opacity properties as exceptions to alpha-value-notation HOT 6
- Use parameterized custom messages HOT 1
- Change `import-notation` to `"url"` HOT 1
- rgba format problem HOT 1
- Is the "stylelint-config-recommended" required HOT 12
- Fix `length-zero-no-unit` false positives for custom properties HOT 2
- Add `media-feature-range-notation: "context"` rule HOT 5
- Is stylelint-config-standard compatible with custom syntax like less? HOT 3
- Restore `declaration-block-single-line-max-declarations` removed on 30.0.0 HOT 2
- Unknown rule HOT 11
- Upgrade to 32.0.0 causes parseError with media query in .less file HOT 3
- Regression: Throwing syntax error when filter is repeatedy used after upgrading to v33 HOT 1
- Enable `camelCaseSvgKeywords` option for `value-keyword-case` HOT 13
- Unknown rule media-query-no-invalid media-query-no-invalid HOT 5
- Establish our browser support policy based on baseline HOT 14
- false positive fatal unknow rule errors after upgrade HOT 2
- Disable autofix for `declaration-block-no-redundant-longhand-properties` HOT 3
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-config-standard.