(npm) publish, and be damned!
May 10th 2019
I recently published my first npm package and my colleague, Attila Vágó, suggested I write up some notes on the process. I'll point out that I am not an expert on this (I don't even play one on TV!) so you should take this with a pinch of salt. I'm…
9 min read
My first npm package - eslint-formatter-complexity
May 4th 2019
I've just published my first npm package - eslint-formatter-complexity. It's an eslint formatter that uses complexity metrics (see below) to highlight the files in your codebase that are in most need of a refactor. The code is available in a public…
2 min read
Testing
May 1st 2019
Unit testing is an essential part of the success of any project. Integration tests are also essential and can range from so-called, coarse-grained, unit tests, through to full end-to-end test that use all parts of the system including backend…
1 min read
AST selectors rule
April 28th 2019
My previous article on abstract syntax trees ran through a quick, but relatively broad, overview of syntax trees and how to manipulate them. This second article will show you how to use a basic knowledge of abstract syntax trees to enforce code…
10 min read
I, for one, welcome our eslint overlords
April 21st 2019
Functioning teams usually agree to code standards intended to make life easier for everyone. Unfortunately, we constantly flout those agreed rules - to our detriment. Not only does this lead to less manageable code, it can also lead to friction and…
4 min read