Quick way to override preset settings for block and modifiers?
See original GitHub issueI tend to use a modified version of BEM, where the modifier
is defined with --
rather than _
.
What’s the easiest way for me to add this change to my config?
I’m using PostCSS, and the stylelint plugin, so i’d need to override it via a settings object, but i’m finding the docs a little overwhelming when using a config object like below:
var stylelintConfig = {
"plugins": [
"stylelint-selector-bem-pattern"
],
"rules": {
"block-no-empty": true,
"color-no-invalid-hex": true,
"selector-bem-pattern": {
"preset": 'bem',
"componentName": "[a-z]+"
}
}
};
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Quick Tip: Use Modifiers to adjust print settings to ... - YouTube
We quickly look at Modifiers in Ideamaker that let you target specific parts of your model and apply special settings to only those...
Read more >Modifiers - Prusa Knowledge Base
Modifier meshes apply custom settings to the intersection of the modifier mesh and the model. Right-click on a model and pick Add modifier...
Read more >Block modification / Methodology / BEM
Use a modifier to change one specific instance of a block. · Use redefinition levels to simultaneously change all the blocks with the...
Read more >Create and Manage Item Modifiers | Square Support Center - US
Delete Modifier Sets · Tap More from the navigation bar at the bottom of your screen and select Items. · Tap Modifiers and...
Read more >Custom rules and Presets - Clever Endeavour Games
In the Menu, go to Rules & Modifiers. The Game Rules tab allows you to customize: Points to Win: How many points are...
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
Ah, it didn’t occur to me that i could pass a function to
componentSelectors
! Completely overlooked that. I was trying with regex from the sample examples forinitial
andcombined
, which had me rather confused.For anyone that comes across this thread:
Sorry to dig this back up, but I tried this and kept getting
Cannot read property 'length' of undefined
when using mixin as a function.using
any thoughts?