Skip to content
This repository has been archived by the owner on Jan 18, 2018. It is now read-only.

[WIP] Update bem-naming to 2.x #16

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

[WIP] Update bem-naming to 2.x #16

wants to merge 4 commits into from

Conversation

blond
Copy link
Member

@blond blond commented Mar 8, 2017

Resolved #15

@blond blond changed the title Update bem-naming to 2.x [WIP] Update bem-naming to 2.x Mar 8, 2017
Copy link
Contributor

@qfox qfox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем все эти изменения в тестах?

tech || (tech = p[1]);
}

return new BemCell({ entity: new BemEntityName(entity), tech });
if (!BemEntityName.isBemEntityName(entity)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can replace this part of code with BemCell.create({ entity, tech })

{ block: 'block' }
]));

const indexBlock = findIndex(decl, { entity: { block: 'block' } });
const indexModifier = findIndex(decl, { entity: { block: 'block', modName: 'mod' } });
const indexModifier = findIndex(decl, { entity: { block: 'block', mod: 'mod' } });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How new version of bem/naming affects this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants