Can't get implicitComponents option to work
See original GitHub issueGood day! Thank you for your work. Very useful plugin.
I need to make use of implicitComponents
option of postcss-bem-linter to automatically get definitions for components.
Here is my .stylelintrc
contents, that should (as I thought) make it happen:
{
"plugins": [
"stylelint-selector-bem-pattern"
],
"rules": {
"plugin/selector-bem-pattern": {
"preset": "bem",
"implicitComponents": "true"
},
}
But it does not work and produces this stylelint error: Invalid option name "implicitComponents" for rule "plugin/selector-bem-pattern"
.
I am running stylelint as Atom plugin, if it matters.
Am I doing something wrong or is it a bug or some limitation?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Building Models with Solvers and Implicit Components
This tutorial will show you how to define implicit components and build models with them. We'll use a nonlinear circuit analysis example problem....
Read more >React 18 TypeScript children FC - Stack Overflow
This error occurs when you are passing no props to the Component. children prop should be an optional prop. So giving those props...
Read more >Intents and Intent Filters - Android Developers
When you use an implicit intent, the Android system finds the appropriate component to start by comparing the contents of the intent to...
Read more >Reverse component selectors, CSS mixins, and implicit state
Hi,. We've got a use case that requires composing together CSS mixins. This is so that we can easily swap out the styling...
Read more >The Problem with Implicit Bias Training - Scientific American
We have known for many years that race is a social construct rather than a proxy for genetic or biological differences. Even so,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The options validation is done here: https://github.com/davidtheclark/stylelint-selector-bem-pattern/blob/master/index.js#L8. PR welcome to update the schema to include new options from postcss-bem-linter.
??? No, it needs to be a function that returns
true
if the value is a boolean,false
, otherwise.Hopefully the
postcss-bem-linter
docs can guide you through this.