Prettier

October 15, 2023 ยท View on GitHub

๐Ÿ”™ Table of Contents


We are using Prettier (https://prettier.io/) for convenient code formatting.

We set up code style configs with the belief that they will be used in conjunction with the Prettier.

So we recommend that you install and use the Prettier configurations for Stylelint and Eslint as an addition to our configurations. More info about integrations you can read in the Prettier docs

{
	"arrowParens": "always",
	"bracketSpacing": true,
	"bracketSameLine": false,
	"printWidth": 80,
	"semi": true,
	"singleQuote": true,
	"trailingComma": "es5",
	"tabWidth": 4,
	"useTabs": true
}

Stylelint example

npm i -D @wezom/stylelint-config stylelint-config-prettier
{
	"extends": ["@wezom/stylelint-config", "stylelint-config-prettier"]
}

Eslint example

npm i -D @wezom/eslint-config eslint-config-prettier
{
	"extends": ["@wezom/eslint-config", "prettier"]
}

๐Ÿ”™ Table of Contents | ๐Ÿ” Top