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",