twbs / bootlint Goto Github PK
View Code? Open in Web Editor NEWHTML linter for Bootstrap projects
License: MIT License
HTML linter for Bootstrap projects
License: MIT License
Refs twbs/bootstrap#13150
$ ./src/cli.js
env: nodejs: No such file or directory
Haven't seen #!/usr/bin/env nodejs
before, all I know of is #!/usr/bin/env node
.
Valid structure is:
div.checkbox>label>input[type="checkbox"]
div.radio>label>input[type="radio"]
label.checkbox-inline>input[type="checkbox"]
label.radio-inline>input[type="radio"]
Because _FUCK JavaScript_, but this still needs to be able to run in-browser.
Need to exempt .row.show-grid
and .row.responsive-utilities-test
Same for popovers too
Refs twbs/bootstrap#14252
Wrong:
<div class="input-group">
<span class="input-group-btn">
<button id="button" class="btn btn-default btn-lg" type="button">Go!</button>
</span>
<input id="input" type="text" class="form-control input-lg" />
</div>
Right:
<div class="input-group input-group-lg">
<span class="input-group-btn">
<button id="button" class="btn btn-default" type="button">Go!</button>
</span>
<input id="input" type="text" class="form-control" />
</div>
Refs twbs/bootstrap#14293
Checking for exactly 1 <button>
child seems sufficient.
Selecting for the jQuery script can return a false positive warning if a user renames the jQuery file, such as when jQuery is concatenated with other JS.
Probably not going to be a common issue in the wild, but should be noted in the caveats maybe?
I guess http://www.bootstrapcdn.com/ , if they're willing.
Refs twbs/bootstrap#14230
Refs twbs/bootstrap#14300
Nesting should be used instead.
Need to verify this with @mdo.
If possible.
Pull requests welcome.
I still see this more often than I'd like to see it.
<div class=".container">
<!-- Some other things -->
<div class=".container">
<!-- Things in nested container>
</div>
</div>
Sometimes this might be desired, but more often than not it screws up the grid.
See: twbs/bootstrap#11436
Specifically, form groups and grid classes should not be combined with them; nesting should be used instead
The violations are:
Same for popovers too
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.