-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpostcss-bem-linter.postcss.txt
31 lines (28 loc) · 2.29 KB
/
postcss-bem-linter.postcss.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
┏━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ POSTCSS-BEM-LINTER ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━┛
VERSION ==> #2.4.1
#Also available as stylelint plugin (see stylelint documentation)
POSTCSS-BEM-LINTER(OBJ|STR) #OBJ:
# - preset STR: define componentName|componentSelectors|utilitySelectors:
# - 'suit': [u-]MyBlock[--myMod][-myElem][--myMod][.is-myState]
# - 'bem': myBlock[__myElem][__myMod]
# - presetOptions OBJ2:
# - namespace 'PROJECT': prefix with PROJECT-
# - componentName REGEXP (def: [-_[:alnum:]]+): for BLOCK
# - componentSelectors:
# - SELECTOR pattern (except utility classes):
# - 'REGEXP'[('BLOCK')], which can use '{componentName}' interpolated to 'BLOCK'
# - OBJ2.initial|combined 'REGEXP'[('BLOCK')]:
# - same but different for selectors before|after first combinator, i.e. ' ' > + ~
# - weak mode (see below):
# - accept anything after first combinator (OBJ2.combined not used)
# - utilitySelectors REGEXP:
# - SELECTOR pattern (for utility classes)
# - ignoreSelectors|ignoreCustomProperties REGEXP[_ARR]:
# - do not lint those SELECTOR or --VAR
# - can also use /* postcss-bem-linter: ignore */, for next selector
#STR: same as {preset: STR}
#Must provide the following comments:
# - /** @define BLOCK|utilities[; weak] */
# - /** @end */ (optional)