chore: prettier

This commit is contained in:
yj 2021-04-22 13:25:49 -05:00
parent ff58457463
commit f284475842
4 changed files with 22 additions and 0 deletions

8
.prettierrc.js Normal file
View File

@ -0,0 +1,8 @@
module.exports = {
semi: true,
endOfLine: "auto",
trailingComma: "all",
singleQuote: false,
printWidth: 120,
tabWidth: 2
};

View File

@ -19,6 +19,7 @@
"io-ts": "^2.2.16", "io-ts": "^2.2.16",
"io-ts-validator": "^0.0.5", "io-ts-validator": "^0.0.5",
"mkdirp": "^1.0.4", "mkdirp": "^1.0.4",
"prettier": "^2.2.1",
"ts-node": "^9.1.1", "ts-node": "^9.1.1",
"tslib": "^2.1.0", "tslib": "^2.1.0",
"typescript": "^4.1.3" "typescript": "^4.1.3"

8
scripts/bulk_add.ts Normal file
View File

@ -0,0 +1,8 @@
const SNAPSHOT_API = "https://hub.snapshot.page/api/";
async function fetchAllSpaces() {
const spaces = fetch(`${SNAPSHOT_API}/spaces`).then((res) => {
console.log("res => ", res);
return res.body;
});
}

View File

@ -59,6 +59,11 @@ mkdirp@^1.0.4:
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==
prettier@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
source-map-support@^0.5.17: source-map-support@^0.5.17:
version "0.5.19" version "0.5.19"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61"