diff --git a/README.md b/README.md new file mode 100644 index 0000000..d94098a --- /dev/null +++ b/README.md @@ -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 + diff --git a/package.json b/package.json index e87b1f2..e830c98 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@teacinema/core", - "version": "1.0.0", + "version": "1.0.1", "description": "Core utils and shared setup", "publishConfig": { "access": "public"