-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathimmutable-css.node_cli.txt
27 lines (22 loc) · 1.61 KB
/
immutable-css.node_cli.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
┏━━━━━━━━━━━━━━━━━━━┓
┃ IMMUTABLE-CSS ┃
┗━━━━━━━━━━━━━━━━━━━┛
VERSION ==> #1.1.1
#Lints CSS to check whether a file references another file's class selectors, as selectors
#(as opposed to inheritance/mixins)
#Goal:
# - used to enforce that upper|same layer's selectors are not overriden
# - note: lower layers should not be referenced altogether
IMMUTABLE-CSS.processFiles #Checks that FILE2 does not override FILE selectors.
('FILE.css', 'FILE2.css', OPTS) #OPTS:
# - strict BOOL (def: false): forbids class mutation in same file
# - ignored|immutableClasses '.CLASS'_ARR: blacklist|whitelist
# - immutablePrefixes REGEXP_ARR
# - callback(OBJ): with OBJ[".CLASS"] 'FILE'_ARR
# - verbose BOOL (def: false unless used as PostCSS): use warnings
IMMUTABLE-CSS.processGlob
('GLOB', OPTS) #Same but check that no FILE overrides another one.
IMMUTABLE-CSS([OPTS[, FUNC(OBJ)]])#PostCSS plugin, that uses IMMUTABLE-CSS.processGlob() on input.
immutable-css [FILE.css...] #CLI
--json #
--strict #