From b1c6286c197ebf878005948698e2b3355fc4674b Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 19 Feb 2023 19:56:15 -0600 Subject: [PATCH] style: add prettier configuration --- .prettierrc | 6 ++++++ package.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..02222a0 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "singleQuote": false, + "semi": true, + "endOfLine": "lf", + "trailingComma": "es5" +} diff --git a/package.json b/package.json index 5e98b1f..436bfa2 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "version": "4.7.6", "scripts": { "build": "tsc", - "lint": "eslint ./src --ext .js,.jsx,.ts,.tsx" + "lint": "eslint ./src --ext .js,.jsx,.ts,.tsx", + "fmt": "prettier --config .prettierrc './**/*.ts' --write" }, "keywords": [ "discord",