My no-fuss code linting and formatting setup

Biome is my absolutely favorite code linter and formatter.
Its built with modern JS in mind. It has great default options right out-of-the-box, with just enough configuration. It also formats code, and can replace Prettier. It supports JavaScript and CSS. It has IDE/text editor integrations. It can run in a CI/deployment setup like GitHub Actions. It’s built with Rust and is fast AF! I’ve been using Biome to build Kelp UI, and it’s been amazing.


This content originally appeared on Go Make Things and was authored by Go Make Things

Biome is my absolutely favorite code linter and formatter.

  1. Its built with modern JS in mind.
  2. It has great default options right out-of-the-box, with just enough configuration.
  3. It also formats code, and can replace Prettier.
  4. It supports JavaScript and CSS.
  5. It has IDE/text editor integrations.
  6. It can run in a CI/deployment setup like GitHub Actions.
  7. It’s built with Rust and is fast AF!

I’ve been using Biome to build Kelp UI, and it’s been amazing.

Here’s what my biome.json file looks like…

{
	"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
	"files": {
		"includes": ["src/css/**/*", "src/js/**/*", "tests/**/*.js"]
	},
	"linter": {
		"rules": {
			"suspicious": {
				"noConsole": {
					"level": "warn",
					"options": {
						"allow": ["assert", "error", "info", "warn"]
					}
				}
			}
		}
	},
	"javascript": {
		"formatter": {
			"quoteStyle": "single"
		}
	}
}

This does three things:

  1. Tells Biome which directories and files to look at (in this case, my CSS, JS, and test files).
  2. Allows console in my code, but only for errors and warnings. If I forget a console.log(), Biome will catch it and yell at me.
  3. Switches the JS formatter from double quotes to single quotes (CSS uses double quotes).

Otherwise, the default options are fantastic!

I have two scripts in my package.json file for linting my code:

  • lint, which runs npx @biomejs/biome check and logs errors in the console.
  • lint:fix, which runs npx @biomejs/biome check --write, an automatically fixes any errors that it can.

I also have an integration in my text editor that shows linting errors and formatting hints live as I write code.

The whole thing is just so nice.

I write code. Biome says, “hey, this looks wrong,” or, “did you mean this?” Then, I can choose a quick fix, ignore it, or figure it out myself.

When I’m ready to deploy, I run npm run lint:fix to lint and format all of my files. And when I push to GitHub, a GitHub Actions script fires off to make sure I didn’t miss anything.

I cannot recommend this setup enough!

Like this? A Lean Web Club membership is the best way to support my work and help me create more free content.


This content originally appeared on Go Make Things and was authored by Go Make Things


Print Share Comment Cite Upload Translate Updates
APA

Go Make Things | Sciencx (2025-12-02T14:30:00+00:00) My no-fuss code linting and formatting setup. Retrieved from https://www.scien.cx/2025/12/02/my-no-fuss-code-linting-and-formatting-setup/

MLA
" » My no-fuss code linting and formatting setup." Go Make Things | Sciencx - Tuesday December 2, 2025, https://www.scien.cx/2025/12/02/my-no-fuss-code-linting-and-formatting-setup/
HARVARD
Go Make Things | Sciencx Tuesday December 2, 2025 » My no-fuss code linting and formatting setup., viewed ,<https://www.scien.cx/2025/12/02/my-no-fuss-code-linting-and-formatting-setup/>
VANCOUVER
Go Make Things | Sciencx - » My no-fuss code linting and formatting setup. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/12/02/my-no-fuss-code-linting-and-formatting-setup/
CHICAGO
" » My no-fuss code linting and formatting setup." Go Make Things | Sciencx - Accessed . https://www.scien.cx/2025/12/02/my-no-fuss-code-linting-and-formatting-setup/
IEEE
" » My no-fuss code linting and formatting setup." Go Make Things | Sciencx [Online]. Available: https://www.scien.cx/2025/12/02/my-no-fuss-code-linting-and-formatting-setup/. [Accessed: ]
rf:citation
» My no-fuss code linting and formatting setup | Go Make Things | Sciencx | https://www.scien.cx/2025/12/02/my-no-fuss-code-linting-and-formatting-setup/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.