Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tslint] reject bp3- prefix too #2996

Merged
merged 4 commits into from
Oct 5, 2018
Merged

[tslint] reject bp3- prefix too #2996

merged 4 commits into from
Oct 5, 2018

Conversation

giladgray
Copy link
Contributor

Fixes #2995

Changes proposed in this pull request:

  • reject bp3- prefix (and tests)
  • merge multiple spaces in remaining template string

@blueprint-bot
Copy link

add some bp3 tests

Previews: documentation | landing | table

@blueprint-bot
Copy link

found a lint failure!

Previews: documentation | landing | table

const stringWithoutPtClasses = ptClassStrings
.reduce((value, cssClass) => value.replace(cssClass, ""), className)
.slice(1, -1)
.replace(/(\s)+/, "$1")
Copy link
Contributor

Choose a reason for hiding this comment

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

ah, that's beautiful

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes!! sometimes regexes are just the best

@giladgray giladgray merged commit 281b1a6 into develop Oct 5, 2018
@giladgray giladgray deleted the gg/tslint-bp3 branch October 5, 2018 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tslint] classes-constants rule should reject bp3- prefixes too
3 participants