From b77128286796ae5e447581e741c8943bc3d923fb Mon Sep 17 00:00:00 2001 From: Mark Sturdevant Date: Wed, 18 Sep 2024 20:05:39 -0700 Subject: [PATCH] chore: Move prettier.config.js settings into package.json One small step towards "Reduce number of files in project root #21" issue. Putting prettier settings in the package.json eliminates one file and works with IDEs, CLI, our yarn format[:fix], etc... Ref: #21 Signed-off-by: Mark Sturdevant --- package.json | 4 ++++ prettier.config.js | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 prettier.config.js diff --git a/package.json b/package.json index 201b001c..a2a03f08 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,10 @@ "NodeJS Agent Framework" ], "packageManager": "yarn@4.1.1", + "prettier": { + "printWidth": 100, + "quoteProps": "consistent" + }, "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/prettier.config.js b/prettier.config.js deleted file mode 100644 index 6d974cde..00000000 --- a/prettier.config.js +++ /dev/null @@ -1,9 +0,0 @@ -// @ts-check - -/** @type {import("prettier").Config} */ -const config = { - printWidth: 100, - quoteProps: "consistent", -}; - -export default config;