@yandex-lms-ext/prettier-config
v1.0.2
Published
Prettier config for external projects of Yandex.LMS team
Downloads
11
Readme
@yandex-lms-ext/prettier-config
Prettier config for external projects of Yandex.LMS team.
Installation
npm install --save-dev prettier @yandex-lms-ext/prettier-config
Configuration
Create Prettier configuration file in the root of project and insert content:
.prettierrc.json
"@yandex-lms-ext/prettier-config"
Create ignore file:
.prettierignore
node_modules/
package.json
package-lock.json
Configure EditorConfig:
.editorconfig
root = true
[*]
charset = utf-8
indent_size = 2
end_of_line = lf
indent_style = space
max_line_length = 100
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
Migration
Format your codebase:
npx prettier --write '**/*.{ts,tsx,css,json,yaml,yml,md}'