add prettier

This commit is contained in:
turnoffthiscomputer
2024-07-14 19:19:55 +02:00
parent 63bbc67cd8
commit f2198ee69e
2 changed files with 23 additions and 2 deletions

18
circuits/.prettierrc Normal file
View File

@@ -0,0 +1,18 @@
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": false
}

View File

@@ -5,7 +5,9 @@
"license": "MIT",
"scripts": {
"test": "yarn ts-mocha tests/**/*.test.ts --exit",
"install-circuits": "cd ../common && yarn && cd ../circuits && yarn"
"install-circuits": "cd ../common && yarn && cd ../circuits && yarn",
"format": "prettier --write .",
"lint": "prettier --check ."
},
"dependencies": {
"@types/chai-as-promised": "^7.1.6",
@@ -40,7 +42,8 @@
"@types/mocha": "^10.0.6",
"chai": "^4.3.8",
"mocha": "^10.3.0",
"prettier": "^3.3.3",
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.2"
}
}
}