Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.1 KB

prettier.md

File metadata and controls

59 lines (43 loc) · 1.1 KB

Prettier

🔙 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

Recommended config

{
	"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