@yandex-lms-ext/prettier-config

1.0.2 • Public • Published

@yandex-lms-ext/prettier-config

npm

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}'

Readme

Keywords

Package Sidebar

Install

npm i @yandex-lms-ext/prettier-config

Weekly Downloads

0

Version

1.0.2

License

MPL-2.0

Unpacked Size

17.8 kB

Total Files

4

Last publish

Collaborators

  • evgenymarkov
  • semyonmakhaev