ESLint Using Gulp

A while ago I wrote an article about using JSHint using Gulp. In the time since that article, I’ve made the switch to ESLint. Which for my money, does a better job of not only checking for syntax errors, but enforcing a style guide. So I figured I would write a quick complementary guide for ESLint using Gulp.

If you’re not familiar with ESLint, it’s JSHint on steroids. It’s extremely flexible, provides the most rules out of any linter, and has support for JSX. Which with the recent growth of React, makes it the defacto tool for linting React files. If your still using JSHint, definitely give ESLint a look.

As in the other article, I’m going to assume you have a knowledge of Node and NPM, as well as a little working knowledge of how Gulp works. If you don’t, definitely check out my getting started in Node series and the JSHint using Gulp article linked above. Read More

Life Update and Going Forward

I know for the past two months I’ve been somewhat neglecting my blog (plus my newsletter, but more on that later) but I figured it was time to give a life update. It was not without reason though. I’ve recently had a big change in my life in that, I’ve left the government life behind and traded it for joining Pure Chat, an early stage startup.

If anyone has known me, you’ll know that joining a startup has been somewhat of a dream of mine (that or start my own :P). The whole thing came together pretty quickly but I’m more than excited to get in on the ground floor of an awesome team. Read More

World’s Smallest JavaScript Router

In a recent project, actually still in-progress project, I needed a small JavaScript router that would fit the following requirements:

  1. Be Tiny
  2. Allow bookmarking of sub views
  3. Assume jQuery as the only available library

I poked around the interwebs, and used Microjs to see if one of them fits what I’m looking for. None quite did, so I did what any other developer usually does, wrote one myself!

Another point to make is that, all the HTML required was already loaded into the page. I didn’t need any AJAX at all. I wanted it to be a completely client-side solution. Read More

Generate JSHint Markdown Reports

I wanted to quickly talk about a new NPM module I published not to long ago, jshint-md-reporter. As you could figure out from the name, it will give you JSHint markdown reports.

After a quick search, I saw that there wasn’t a reporter already made. I found one that would generate an HTML page in Bootstrap so I stole that same concept, and modified it to generate markdown.
Read More

Empty File Inputs in IE9

In all web development, you run into a bug that’s specific to a browser/version, and defies common sense. At least common sense in the way web development can make sense sometimes.

The past day or two, I have been debugging an issue that had me ready to pull my hair out. It’s specific to IE9 (or the new IE6), and file inputs not being sent to the server through a form POST.
Read More