Set up linting and formatting for code and (S)CSS files in a Next.js project

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

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • stylelint-config-standard-scss

    The standard shareable SCSS config for Stylelint.

  • stylelint-config-standard-scss is a Stylelint config that provides linting rules. It uses the Stylelint plugin stylelint-css and extends configs stylelint-config-standard which defines rules for vanilla CSS, and stylelint-config-recommended-scss which defines SCSS specific rules. As a result extending from this one config is enough to get linting support for both CSS and SCSS files.

  • stylelint-config-standard

    The standard shareable config for Stylelint

  • stylelint-config-standard-scss is a Stylelint config that provides linting rules. It uses the Stylelint plugin stylelint-css and extends configs stylelint-config-standard which defines rules for vanilla CSS, and stylelint-config-recommended-scss which defines SCSS specific rules. As a result extending from this one config is enough to get linting support for both CSS and SCSS files.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • stylelint-config-standard-scss is a Stylelint config that provides linting rules. It uses the Stylelint plugin stylelint-css and extends configs stylelint-config-standard which defines rules for vanilla CSS, and stylelint-config-recommended-scss which defines SCSS specific rules. As a result extending from this one config is enough to get linting support for both CSS and SCSS files.

  • prettier

    Prettier is an opinionated code formatter.

  • Prettier is an opinionated code formatter that can format pretty much any file (.json, .js, .ts, .css, .scss etc.).

  • lint-staged

    🚫💩 — Run linters on git staged files

  • lint-staged is a package that can be used to run formatting and linting commands on staged files in a Git repo.

  • husky

    Git hooks made easy 🐶 woof!

  • Husky is the typical choice in Node.js packages for registering commands to run in Git hooks.

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