GithubHelp home page GithubHelp logo

twbs / bootlint Goto Github PK

View Code? Open in Web Editor NEW
2.4K 137.0 312.0 3.67 MB

HTML linter for Bootstrap projects

License: MIT License

JavaScript 99.84% Shell 0.16%
bootlint bootstrap html bookmarklet linter

bootlint's Issues

#!/usr/bin/env nodejs

$ ./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.

use TypeScript

Because _FUCK JavaScript_, but this still needs to be able to run in-browser.

Warn about sm/lg .input-groups that don't use .input-group-sm/lg

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>

Warn about nested containers

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.