Using eslint with Webpack

This morning I realized my eslint configuration was not running. I had set up the wrong command in the pretest script of my package.json and as a result none of the files were being run through eslint – it was just silently failing. My old gulp configuration had a gulp.src() definition that used globbing to…

Managing Coding Style in JavaScript with eslint

I’m a big fan of linters, especially in the case of JavaScript.  Most languages are statically typed and have fairly well known and rigid formatting.  This allows consumers of the language to read source code and easily digest what it is doing.  Not so JavaScript.  Some of the code is so badly written that you…

Visual Studio Code and Trimming Whitespace

Have you noticed that eslint doesn’t like trailing whitespace. It has a rule for it: the no-trailing-spaces rule. Normally, this wouldn’t be a problem. I’m normally using Visual Studio 2015. Visual Studio takes care of it. Firstly, when you are typing JavaScript, the editor properly indents and doesn’t give you blank lines with spaces on…

ASP.NET MVC6 Identity Part 4 – AJAX Authentication

In the last few articles, I’ve covered the following: Creating an ASP.NET Identity Database Data Annotations and Custom Validators for Models A WebAPI Authenticator An ECMAScript 6 Modal Dialog Four articles and I still haven’t logged in to my application. Today that is going to change because I’m writing the front-end AJAX code to do…