From 4dc769b3b4e2cacd119aa027839887b7cf8a2a93 Mon Sep 17 00:00:00 2001 From: bent10 Date: Tue, 27 Aug 2024 16:20:57 +0700 Subject: [PATCH] fix(docs): update shareable configs usage examples --- readme.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/readme.md b/readme.md index 50e432e..964f366 100644 --- a/readme.md +++ b/readme.md @@ -35,14 +35,10 @@ Doogu provides shareable configs for ESLint, Prettier, and Semantic Release that ### ESLint Configuration -To extend the shareable ESLint configuration in your `package.json` file, add the following: +Create your `eslint.config.js` file, add the following: -```json -{ - "eslintConfig": { - "extends": "./node_modules/doogu/eslint" - } -} +```js +export { default } from 'doogu/eslint.config.js' ``` ### Prettier Configuration @@ -51,7 +47,7 @@ To extend the shareable Prettier configuration in your `package.json` file, add ```json { - "prettier": "doogu/prettier.json" + "prettier": "doogu/prettier.config.js" } ``` @@ -93,7 +89,7 @@ Or do anything you want: "build": "vite build --ssr src/index.ts && npm run types", "test": "vitest --ui", "coverage": "vitest run --coverage", - "types": "tsc -d --emitDeclarationOnly --outDir ./dist && resolve-tspaths -o ./dist", + "types": "tsc -d --emitDeclarationOnly --outDir ./dist", "lint": "tsc --noEmit && eslint .", "format": "prettier --write ." } @@ -123,4 +119,4 @@ git add . && git cz ## Thank you -A project by [Stilearning](https://stilearning.com) © 2022-2023. +A project by [Stilearning](https://stilearning.com) © 2022-2024.