Use another preset as default via 'userDefaults' option

node v10.15.0
version: 1.0.0
endpointsharetweet
const myNamingOptions = { delims: { mod: { val: '=' } } }; const myNaming = require('@bem/sdk.naming.presets/create')(myNamingOptions, 'two-dashes');
Parse a BEM entity name to test created preset.
const parse = require('@bem/sdk.naming.entity.parse')(myNaming); parse('my-block--my-modifier=some-value');
Loading…

no comments

    sign in to comment