add dprint

This commit is contained in:
Erin 2023-09-05 21:42:15 -04:00
parent 124b3cb365
commit d62a32e427
3 changed files with 193 additions and 3 deletions

29
dprint.json Normal file
View file

@ -0,0 +1,29 @@
{
"typescript": {
"lineWidth": 80,
"useTabs": true,
"quoteStyle": "alwaysSingle",
"quoteProps": "consistent",
"useBraces": "always",
"arrowFunction.useParentheses": "preferNone",
"enumDeclaration.memberSpacing": "newLine",
"spaceSurroundingProperties": false,
"exportDeclaration.spaceSurroundingNamedExports": false,
"importDeclaration.spaceSurroundingNamedImports": false,
"constructor.spaceBeforeParentheses": true,
"functionDeclaration.spaceBeforeParentheses": true,
"functionExpression.spaceBeforeParentheses": true,
"getAccessor.spaceBeforeParentheses": true,
"setAccessor.spaceBeforeParentheses": true,
"method.spaceBeforeParentheses": true
},
"markdown": {},
"excludes": [
"**/node_modules",
"**/*-lock.json"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.86.1.wasm",
"https://plugins.dprint.dev/markdown-0.15.3.wasm"
]
}

159
package-lock.json generated
View file

@ -7,7 +7,164 @@
"": {
"name": "webring-shit",
"version": "1.0.0",
"license": "WTFPL"
"license": "WTFPL",
"devDependencies": {
"dprint": "^0.40.2"
}
},
"node_modules/@dprint/darwin-arm64": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/darwin-arm64/-/darwin-arm64-0.40.2.tgz",
"integrity": "sha512-qharMFhxpNq9brgvHLbqzzAgVgPWSHLfzNLwWWhKcGOUUDUIilfAo3SlvOz6w4nQiIifLpYZOvZqK7Lpf9mSSw==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"darwin"
]
},
"node_modules/@dprint/darwin-x64": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/darwin-x64/-/darwin-x64-0.40.2.tgz",
"integrity": "sha512-FPDdOTVr1JfqtLBTCvqlihWslTy3LBUoi3H1gaqIazCKMj2dB9voFWkBiMT+REMHDrlVsoSpFAfsliNr/y7HPA==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"darwin"
]
},
"node_modules/@dprint/linux-arm64-glibc": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/linux-arm64-glibc/-/linux-arm64-glibc-0.40.2.tgz",
"integrity": "sha512-GmUWfKwEwXA+onvewX9hEJSMcd9V184+uRbEhI5tG28tBP9+IjQhrY7jCjxPvaZA+EvzNPnAy5D1wbJdlNLBNA==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"linux"
]
},
"node_modules/@dprint/linux-x64-glibc": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/linux-x64-glibc/-/linux-x64-glibc-0.40.2.tgz",
"integrity": "sha512-vMHAHdsOY+2thieSWbIrIioDfPgvipwUgd0MZUWOqycTrXU6kLyi2B+5J/2Jc+QO3CiLIbumQd2FH/0vB1eWqA==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"linux"
]
},
"node_modules/@dprint/linux-x64-musl": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/linux-x64-musl/-/linux-x64-musl-0.40.2.tgz",
"integrity": "sha512-nFSbDWd9ORyOhJ7a+RmE39WbuPoQ3OQutIgfAmfikiu/wENzEwxxv4QJ7aFnBaoZb0wuVEEpXShr8vY4p0exkg==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"linux"
]
},
"node_modules/@dprint/win32-x64": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/win32-x64/-/win32-x64-0.40.2.tgz",
"integrity": "sha512-qF4VCQzFTZYD61lbQqXLU/IwUTbLK22CancO+uVtXmZRoKU9GaVjcBhMUB7URxsa8rvxWHhHT6ldillI/aOWCg==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"win32"
]
},
"node_modules/dprint": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/dprint/-/dprint-0.40.2.tgz",
"integrity": "sha512-3LdyUV0itEW59UPtsRA2StOWOu8FyOW+BgvJpH/tACRHKi0z5gaQnvSxdS3mbG7dgtEhdRnGg6JoiQyGib6NTg==",
"dev": true,
"hasInstallScript": true,
"bin": {
"dprint": "bin.js"
},
"optionalDependencies": {
"@dprint/darwin-arm64": "0.40.2",
"@dprint/darwin-x64": "0.40.2",
"@dprint/linux-arm64-glibc": "0.40.2",
"@dprint/linux-x64-glibc": "0.40.2",
"@dprint/linux-x64-musl": "0.40.2",
"@dprint/win32-x64": "0.40.2"
}
}
},
"dependencies": {
"@dprint/darwin-arm64": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/darwin-arm64/-/darwin-arm64-0.40.2.tgz",
"integrity": "sha512-qharMFhxpNq9brgvHLbqzzAgVgPWSHLfzNLwWWhKcGOUUDUIilfAo3SlvOz6w4nQiIifLpYZOvZqK7Lpf9mSSw==",
"dev": true,
"optional": true
},
"@dprint/darwin-x64": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/darwin-x64/-/darwin-x64-0.40.2.tgz",
"integrity": "sha512-FPDdOTVr1JfqtLBTCvqlihWslTy3LBUoi3H1gaqIazCKMj2dB9voFWkBiMT+REMHDrlVsoSpFAfsliNr/y7HPA==",
"dev": true,
"optional": true
},
"@dprint/linux-arm64-glibc": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/linux-arm64-glibc/-/linux-arm64-glibc-0.40.2.tgz",
"integrity": "sha512-GmUWfKwEwXA+onvewX9hEJSMcd9V184+uRbEhI5tG28tBP9+IjQhrY7jCjxPvaZA+EvzNPnAy5D1wbJdlNLBNA==",
"dev": true,
"optional": true
},
"@dprint/linux-x64-glibc": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/linux-x64-glibc/-/linux-x64-glibc-0.40.2.tgz",
"integrity": "sha512-vMHAHdsOY+2thieSWbIrIioDfPgvipwUgd0MZUWOqycTrXU6kLyi2B+5J/2Jc+QO3CiLIbumQd2FH/0vB1eWqA==",
"dev": true,
"optional": true
},
"@dprint/linux-x64-musl": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/linux-x64-musl/-/linux-x64-musl-0.40.2.tgz",
"integrity": "sha512-nFSbDWd9ORyOhJ7a+RmE39WbuPoQ3OQutIgfAmfikiu/wENzEwxxv4QJ7aFnBaoZb0wuVEEpXShr8vY4p0exkg==",
"dev": true,
"optional": true
},
"@dprint/win32-x64": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/@dprint/win32-x64/-/win32-x64-0.40.2.tgz",
"integrity": "sha512-qF4VCQzFTZYD61lbQqXLU/IwUTbLK22CancO+uVtXmZRoKU9GaVjcBhMUB7URxsa8rvxWHhHT6ldillI/aOWCg==",
"dev": true,
"optional": true
},
"dprint": {
"version": "0.40.2",
"resolved": "https://registry.npmjs.org/dprint/-/dprint-0.40.2.tgz",
"integrity": "sha512-3LdyUV0itEW59UPtsRA2StOWOu8FyOW+BgvJpH/tACRHKi0z5gaQnvSxdS3mbG7dgtEhdRnGg6JoiQyGib6NTg==",
"dev": true,
"requires": {
"@dprint/darwin-arm64": "0.40.2",
"@dprint/darwin-x64": "0.40.2",
"@dprint/linux-arm64-glibc": "0.40.2",
"@dprint/linux-x64-glibc": "0.40.2",
"@dprint/linux-x64-musl": "0.40.2",
"@dprint/win32-x64": "0.40.2"
}
}
}
}

View file

@ -4,9 +4,13 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.mjs"
"start": "node index.mjs",
"fmt": "dprint fmt"
},
"keywords": [],
"author": "",
"license": "WTFPL"
"license": "WTFPL",
"devDependencies": {
"dprint": "^0.40.2"
}
}