Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Update for Bootstrap v4 #304

Open
cvrebert opened this issue Aug 20, 2015 · 23 comments
Open

Update for Bootstrap v4 #304

cvrebert opened this issue Aug 20, 2015 · 23 comments

Comments

@cvrebert
Copy link
Collaborator

No description provided.

@cvrebert cvrebert added this to the v1.0.0 milestone Aug 20, 2015
@zacechola
Copy link
Collaborator

👍

@kkirsche
Copy link
Contributor

👍 when do you think is the right time to do the upgrade?

@zacechola
Copy link
Collaborator

I think we need to see what's tripping people up often as the alphas are out there, but there are a few rules that need to be removed or rewritten given the new structures (containers can be nested now, panels are gone, etc. etc.).

We also need to have a bit of a meta discussion about maintaining multiple versions of Bootlint. As long as Bootstrap supports v3, we'll need to support it as well.

@kkirsche
Copy link
Contributor

@zacechola do you think we want to run completely separate versions or provide a flag for each version and provide a single distribution of bootlint?

Certainly though some good things to rewrite and remove per the changes made in V4

@zacechola
Copy link
Collaborator

I'd vote for a flag. Getting into a meta discussion about structure here, but we could break out all the rules into their own files/directory structure and import them as needed. So we could have a big set of rules and then a v3 flag is just a subset of rules and v4 is another subset. That would also allow us to continue using the existing problem IDs. Something like E004 would be in v3's set, but deprecated in v4's set.

cc @hnrch02

@hnrch02
Copy link
Collaborator

hnrch02 commented Sep 2, 2015

IIRC the goal for Bootlint v1 was full Bootstrap v4 support, don't know what we wanted to do about v3. Maybe @cvrebert can weigh in on that.

Supporting both v3 and v4 in the same Bootlint version would benefit users of both BS versions with new features and changes to the internals of Bootlint but would increase the maintenance burden for us. We could also maintain both 0.x and 1.x until Bootstrap v3 comes to its EOL and discontinue support for v3 in the 1.x series.

If we were to choose supporting both v3 and v4 in the same Bootlint version, I'd say the way to go would be to use some sort of auto-detection based on the classes used in the input. If the BS version could not be detected with certainty it could default to v4 and provide information to the user on how to switch to v3.

Anyway, I like the idea of splitting out each rule into its own file, like @zacechola said. I wanted to do that but didn't find the time yet.

@hnrch02
Copy link
Collaborator

hnrch02 commented Sep 2, 2015

Also, since Bootstrap v4 might still change quite a bit I'd argue that we should start working on Bootlint v1 once BS v4 approaches the first RC.

@ChrisMBarr
Copy link
Contributor

Couldn't the version of bootstrap just be detected and then enable/disable different rule sets based on that? Bootlint already warns about using bootstrap 4 with rule W015

@Herst
Copy link
Collaborator

Herst commented Sep 3, 2017

Did anyone already start working on this?

In any case, I made an attempt at some basic first steps towards support for it, see e.g. Herst/bootlint-ng@10ed5364 (/edit: hash points to rebased version now)

Again, those are only the very first steps.

@Herst
Copy link
Collaborator

Herst commented Sep 5, 2017

PR for tracking: #410

@nickmccurdy
Copy link

nickmccurdy commented Nov 4, 2017

What's the current status of this? I heard someone mentioning Bootstrap 4 alpha support, but is the beta unsupported? Can we add this information to the readme for transparency and to encourage people to contribute?

@Herst
Copy link
Collaborator

Herst commented Nov 4, 2017

@nickmccurdy In my PR (see #410 and https://github.com/Herst/bootlint) I added partial support for Bootstrap 4 around the time between beta 1 and 2. I would totally love for people to contribute, PRs are welcome!

@mackcoding
Copy link

Is there any update to bootlint for bs4? Really want to see this!

@Quix0r
Copy link

Quix0r commented Sep 12, 2018

Please then also provide a 3.3.x-kompatible version on MaxCDN as not all will switch to BS4 (it is generally a good idea, of course, but off-topic here).

@rmullaney77
Copy link

rmullaney77 commented Sep 29, 2018

Assumed the v4 compatible Bootlint would be available due to the age of this issue. Not to mention BS4 is no longer beta and actively working on 4.1.3.alpha 🤔

Any ETA on the 4.x compatible utility?

Edit: What brought me here today... bookmarklet threw errors on input-group as it does not expect input-group-prepend and input-group-append 😉

@Herst
Copy link
Collaborator

Herst commented Sep 29, 2018

@rmullaney77

Any ETA on the 4.x compatible utility?

No, at the moment there are mainly just some feature branches enabling compatibility for parts of it (e.g. the new grid): https://github.com/twbs/bootlint/branches

See also the pull requests and issues with [v.next] in the title. Help is always appreciated, e.g. by splitting up the wiki pages between v3 and v4+.

@stevenbriscoeca
Copy link

Hi @Herst,

Is there is any update on the ETA? Are we looking at 2020?

@Herst
Copy link
Collaborator

Herst commented Jul 29, 2019

Is there is any update on the ETA?

It's done when it's done. Help is always appreciated, even little stuff like updating the Wiki or such.

@nickmccurdy
Copy link

nickmccurdy commented Apr 26, 2020

Could we have a flag to automatically enable Bootstrap 4 rules and disable Bootstrap 3 only rules for now? I would be able to more easily test Bootstrap 4 support with that, but without it I mostly get false positives from Bootstrap 3 and it's difficult to isolate what I should be doing for Bootstrap 4.

@Herst
Copy link
Collaborator

Herst commented Apr 27, 2020

This would basically disable all rules @nickmccurdy. The branch for bootstrap 4+ already exists, it just needs to be completed (which in some cases just means test cases and wiki pages). Any help is appreciated.

Look for the issues with [v1] in the title or branches with next in their name.

@nickmccurdy
Copy link

Ah so they haven't been release yet? That's what I'm confused about.

@Herst
Copy link
Collaborator

Herst commented Apr 28, 2020

See #431 to see its progress. Progress has been quite slow since I am the only person working on it and I haven't found the time (and sometimes motivation), other people in this project have done reviews.

@CRYPTO-GENIK
Copy link

Thanks for your work. I know it's thankless, but thank you. It helped me learn a lot over the years I've been using the bookmarklet.

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

No branches or pull requests