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

Feature Request: flex values #945

Open
tnir opened this issue Mar 25, 2018 · 1 comment
Open

Feature Request: flex values #945

tnir opened this issue Mar 25, 2018 · 1 comment

Comments

@tnir
Copy link
Contributor

tnir commented Mar 25, 2018

Lint values for flex properties to use the predefined values.

Bad

.flex-zero {
    flex: 0;
}
.flex-zero {
    flex: 1;
}
.flex-initial {
    flex: 0 1 auto;
}
.flex-auto {
    flex: 1 1 auto;
}
.flex-none {
    flex: 0 0 auto;
}

Good

.flex-zero {
    flex: initial;
}
.flex-zero {
    flex: auto;
}
.flex-initial {
    flex: initial;
}
.flex-auto {
    flex: auto;
}
.flex-none {
    flex: none;
}

Reference(s)

@sds
Copy link
Owner

sds commented Mar 29, 2018

Happy to accept a pull request implementing this, @tnir!

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

No branches or pull requests

2 participants