diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..8fccd8c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "singleQuote": true, + "bracketSpacing": true, + "tabWidth": 4, + "printWidth": 120 + } \ No newline at end of file diff --git a/package.json b/package.json index 871cc57..cb782db 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,8 @@ "watch": "tsc -watch -p ./", "pretest": "npm run compile && npm run lint", "lint": "eslint src --ext ts", - "test": "node ./out/test/runTest.js" + "test": "node ./out/test/runTest.js", + "format": "npx prettier --write ." }, "devDependencies": { "@types/mocha": "^10.0.2",