GithubHelp home page GithubHelp logo

washington-kibichii / html-lint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from curtisj44/html-lint

0.0 1.0 0.0 341 KB

A code quality bookmarklet and command-line tool

License: MIT License

JavaScript 26.97% HTML 69.20% CSS 3.83%

html-lint's Introduction

HTML-Lint

HTML-Lint is a tool designed to supplement HTML validation by identify coding practices that pass validation, but are less than ideal.

How to Use:

Option 1: Bookmarklet

  1. Copy the code below:
    javascript: (function(){'use strict';var script = document.createElement('script');script.src = 'https://curtisj44.github.io/HTML-Lint/dist/htmlLint.min.js';script.id = 'html-lint-js';document.body.appendChild(script);}());
  2. Create a new bookmark.
  3. Set the name to “HTML-Lint” and paste the above as the URL.

Option 2: CLI

Sample verbose output

Available on NPM: npmjs.com/package/html-lint: npm install html-lint -g.

Usage

html-lint <url> <filename>

Options

--strict     Return a non-zero exit code if lint errors are found
--verbose    Enable verbose output

Examples

html-lint http://www.google.com
html-lint http://www.google.com --verbose
html-lint http://www.google.com foo

Development

Getting Started

  1. Have the following requirements installed: Node, NPM, and PhantomJS
  2. Clone the repo: git clone https://github.com/curtisj44/HTML-Lint.git
  3. Run npm install
  4. Run gulp

Tasks

  • gulp → compiles Sass to CSS, concatenates JS, minifies CSS and JS, and watches
  • gulp watch → runs default gulp task and then watches for changes

html-lint's People

Contributors

curtisj44 avatar persimmons avatar

Watchers

James Cloos avatar

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.