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.

Can't get implicitComponents option to work

See original GitHub issue

Good 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:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
davidtheclarkcommented, Mar 25, 2017

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.

0reactions
davidtheclarkcommented, Mar 30, 2017

a true or false or glob

??? No, it needs to be a function that returns true if the value is a boolean, false, otherwise.

I actually do not know how to do it yet.

Hopefully the postcss-bem-linter docs can guide you through this.

Read more comments on GitHub >

github_iconTop 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 >

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