Clean Code: Open Source Linting & Formatting

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • eslint-plugin-oxlint

    Turn off all rules already supported by oxlint

    The documentation also mentioned an ESLint plugin so that Oxc works with ESLint, that I simply injected into the ESLint config file eslint.config.mjs.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • husky

    Git hooks made easy 🐶 woof!

    My second approach is to always ask ChatGPT to do a Bing (I wish it was google too, believe me) search for me and find tools that fit my criteria. And it did! I was recommended two packages, Husky and lint-staged, which work together! Husky is a package that provides ultra-fast modern native Git hooks, and lint-staged is a tool that allows running linters against staged Git files!

  • lint-staged

    🚫💩 — Run linters on git staged files

    My second approach is to always ask ChatGPT to do a Bing (I wish it was google too, believe me) search for me and find tools that fit my criteria. And it did! I was recommended two packages, Husky and lint-staged, which work together! Husky is a package that provides ultra-fast modern native Git hooks, and lint-staged is a tool that allows running linters against staged Git files!

  • prettier

    Prettier is an opinionated code formatter.

    For formatting, my go-to is always the beloved Prettier package/extension! This was introduced to me first in the Cloud Computing for Developers course I took with Professor Humphrey last year.

  • ESLint

    Find and fix problems in your JavaScript code.

    For linting, my go-to is usually ESLint. Unlike formatting, which is meant to keep your code clean and readable, linting helps detect issues in your code, such as unused variables, attempts to change an immutable variable, and many more. ESLint is my go-to because I always use Airbnb's ESLint Configurations in my projects. ESLint allows you to set many rules for your source code, such as using a specific naming convention, forbidding vanilla for-loops, or prefix and postfix operators, restricting single exports in a file to export default, and many more.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Make Commit in Your React Project Format-Test-Build Ready with Husky - A Step-by-Step Guide

    4 projects | dev.to | 24 May 2024
  • Streamlining your Tailwind CSS workflow with ESLint + Prettier

    8 projects | dev.to | 13 Jul 2022
  • Standardize Your Next.js Project with ESLint and Husky

    6 projects | dev.to | 30 Jan 2022
  • Tools to ensure code quality

    5 projects | dev.to | 7 Apr 2021
  • ESLint adoption guide: Overview, examples, and alternatives

    11 projects | dev.to | 8 Aug 2024