We all try to write the best code we can, but sometimes things slip through the cracks. With a look at the data from scans of thousands of projects, we can tell the most common issues in the codebases of all JavaScript developers. In this talk we'll look at those top issues plaguing JavaScript projects around the world, we'll see why they are problems, and finally how to spot and avoid those common errors and anti-patterns. By the end of the talk, you'll feel more confident in your codebase and maybe have a few things to fix. --- Tools: SonarQube: https://www.sonarsource.com/products/sonarqube/ SonarCloud: https://www.sonarsource.com/products/sonarcloud/ SonarLint: https://www.sonarsource.com/products/sonarlint/ ESLint: https://eslint.org/ eslint-plugin-sonarjs: https://github.com/SonarSource/eslint-plugin-sonarjs Links Cognitive Complexity paper: https://www.sonarsource.com/docs/CognitiveComplexity.pdf Code is read much more often than it is written, so plan accordingly: https://devblogs.microsoft.com/oldnewthing/20070406-00/?p=27343 Sonar JavaScript Rules: https://rules.sonarsource.com/javascript 🎉 Reveal.js Confetti 🎉 https://github.com/philnash/reveal-confetti