добавлен README файл
This commit is contained in:
parent
c9b9a86259
commit
21ef7eb81c
36
README.md
Normal file
36
README.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# @teacinema/core
|
||||||
|
|
||||||
|
Набор общих утилит и настроек. Пакет экспортирует конфигурацию Prettier.
|
||||||
|
|
||||||
|
## Установка
|
||||||
|
|
||||||
|
- Требуется `prettier` версии ^3 (peer dependency).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm i -D @teacinema/core prettier
|
||||||
|
```
|
||||||
|
|
||||||
|
## Использование
|
||||||
|
|
||||||
|
Подключите конфигурацию Prettier из пакета:
|
||||||
|
|
||||||
|
- В `package.json` проекта:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"prettier": "@teacinema/core/prettier"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
или через `.prettierrc.mjs`:
|
||||||
|
|
||||||
|
```js
|
||||||
|
export { default } from "@teacinema/core/prettier";
|
||||||
|
```
|
||||||
|
|
||||||
|
Конфигурация уже включает `@trivago/prettier-plugin-sort-imports`.
|
||||||
|
|
||||||
|
## Лицензия
|
||||||
|
|
||||||
|
ISC
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@teacinema/core",
|
"name": "@teacinema/core",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Core utils and shared setup",
|
"description": "Core utils and shared setup",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user