From 39ef92e1b8acd5119195b8d52ec641553feb10e1 Mon Sep 17 00:00:00 2001 From: emiljohansson Date: Sat, 18 Feb 2023 16:44:14 -0700 Subject: [PATCH] prettify packages/lib --- README.md | 61 ++++++++++++++++++------------------- package.json | 2 +- packages/lib/jest.config.js | 6 ++-- packages/lib/package.json | 36 +++++++++++----------- packages/lib/tsconfig.json | 6 ++-- 5 files changed, 55 insertions(+), 56 deletions(-) diff --git a/README.md b/README.md index de7577f..fd2dbfe 100644 --- a/README.md +++ b/README.md @@ -2,34 +2,33 @@ ## Tech's used in this project -* Repo - * turborepo - * husky - * pnpm -* CI - * github actions -* Hosting / CD - * vercel -* Database - * Supabase - * ~~PlanetScale~~ - * ~~Prisma~~ -* Frameworks - * SSR/SSG/CSR - * Next.js - * ~~Remix~~ - * CSS - * Tailwind CSS -* Styling - * Radix UI - * Radix Icons -* Animations - * Framer Motion -* Testing - * End to end - * Cypress - * Lighthouse - * AXE - * Unit testing - * Jest - +- Repo + - turborepo + - husky + - pnpm +- CI + - github actions +- Hosting / CD + - vercel +- Database + - Supabase + - ~~PlanetScale~~ + - ~~Prisma~~ +- Frameworks + - SSR/SSG/CSR + - Next.js + - ~~Remix~~ + - CSS + - Tailwind CSS +- Styling + - Radix UI + - Radix Icons +- Animations + - Framer Motion +- Testing + - End to end + - Cypress + - Lighthouse + - AXE + - Unit testing + - Jest diff --git a/package.json b/package.json index 3e91fc6..6f29f8d 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "cy:run": "cypress run --headless --browser chrome", "cy:open": "cypress open", "prettier:check": "prettier --check .", - "format": "prettier --write \"packages/shared/*.{ts,tsx}\"", + "format": "prettier --write \"packages/lib/*.{ts,tsx,js,md,json}\"", "lint": "turbo run lint" }, "workspaces": [ diff --git a/packages/lib/jest.config.js b/packages/lib/jest.config.js index ba99b11..58c8676 100644 --- a/packages/lib/jest.config.js +++ b/packages/lib/jest.config.js @@ -1,6 +1,6 @@ /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ module.exports = { - preset: 'ts-jest', - testEnvironment: 'node', - collectCoverageFrom: ['src/**/*.ts'], + preset: 'ts-jest', + testEnvironment: 'node', + collectCoverageFrom: ['src/**/*.ts'], } diff --git a/packages/lib/package.json b/packages/lib/package.json index 472d656..9f5b244 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -1,20 +1,20 @@ { - "name": "lib", - "version": "0.0.0", - "license": "MIT", - "scripts": { - "lint": "eslint ./{hooks,tests,utils}/*.ts", - "test": "jest --coverage", - "test:watch": "jest --coverage --watchAll", - "test:ci": "npm run test" - }, - "dependencies": { - "next": "13.1.1", - "react": "18.2.0" - }, - "devDependencies": { - "config": "workspace:*", - "tsconfig": "workspace:*", - "tsup": "5.11.13" - } + "name": "lib", + "version": "0.0.0", + "license": "MIT", + "scripts": { + "lint": "eslint ./{hooks,tests,utils}/*.ts", + "test": "jest --coverage", + "test:watch": "jest --coverage --watchAll", + "test:ci": "npm run test" + }, + "dependencies": { + "next": "13.1.1", + "react": "18.2.0" + }, + "devDependencies": { + "config": "workspace:*", + "tsconfig": "workspace:*", + "tsup": "5.11.13" + } } diff --git a/packages/lib/tsconfig.json b/packages/lib/tsconfig.json index 37906aa..cf881bb 100644 --- a/packages/lib/tsconfig.json +++ b/packages/lib/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "tsconfig/base.json", - "include": ["."], - "exclude": ["dist", "build", "node_modules"] + "extends": "tsconfig/base.json", + "include": ["."], + "exclude": ["dist", "build", "node_modules"] }