JS project template

7 August 2020

tl;dr: A GitHub template for JavaScript projects with Husky hooks pre-configured; Jest for testing (pre-push), Babel, ESLint and Prettier for syntax and formatting (pre-commit) and Commitlint for commit messages (commit-msg). Read more

The Curious Case of PropTypes

15 July 2020

tl;dr: PropTypes is installed as a dependency and declarations end up in production bundles, yet are only helpful during development. To remove from production bundles use babel-plugin-transform-react-remove-prop-types. Read more

Linting with CSS Modules

22 June 2020

tl;dr: When using CSS Modules, having a CSS syntax linter such as stylelint isn't enough - you also need to use a JavaScript linter such as ESLint with functionality to lint the CSS Module being imported (e.g. eslint-plugin-css-modules). Read more