Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 13, 2023
1 parent 24513de commit 7c69e37
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
20 changes: 16 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"vscode-textmate": "^9.0.0"
},
"devDependencies": {
"@types/css": "^0.0.33",
"@types/css": "^0.0.34",
"@types/json-stable-stringify": "^1.0.0",
"@types/mdast": "^3.0.0",
"@types/node": "^20.0.0",
Expand All @@ -65,13 +65,13 @@
"hast-util-to-html": "^8.0.0",
"json-stable-stringify": "^1.0.0",
"mdast-zone": "^5.0.0",
"prettier": "^2.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"unist-builder": "^3.0.0",
"xo": "^0.54.0",
"xo": "^0.56.0",
"yaml": "^2.0.0"
},
"scripts": {
Expand All @@ -82,7 +82,7 @@
"generate-css": "node --conditions development script/css.js",
"generate": "npm run generate-build && npm run generate-list && npm run generate-css",
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test-api": "node --conditions development test.js",
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
"test": "npm run generate && npm run build && npm run format && npm run test-coverage"
Expand Down Expand Up @@ -133,11 +133,23 @@
"gems/",
"lang/"
],
"overrides": [
{
"files": [
"script/**/*.js"
],
"rules": {
"no-await-in-loop": "off"
}
}
],
"prettier": true,
"rules": {
"max-depth": "off",
"no-bitwise": "off",
"no-template-curly-in-string": "off",
"unicorn/prefer-at": "off",
"unicorn/prefer-string-replace-all": "off",
"unicorn/prefer-top-level-await": "off"
}
}
Expand Down
6 changes: 3 additions & 3 deletions script/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ await Promise.all(

await fs.writeFile(
outputUrl,
prettier.format(
await prettier.format(
[
"/** @type {import('../lib/index.js').Grammar} */",
'const grammar = ' +
Expand Down Expand Up @@ -526,7 +526,7 @@ await Promise.all(

await fs.writeFile(
new URL('../lib/' + d + '.js', import.meta.url),
prettier.format(
await prettier.format(
[
'/**',
" * @typedef {import('./index.js').Grammar} Grammar",
Expand Down Expand Up @@ -557,7 +557,7 @@ await Promise.all(

await fs.writeFile(
new URL('../lang/' + from + '.js', import.meta.url),
prettier.format(
await prettier.format(
[
'// This is an alias, please use `' + to + '.js` instead.',
'export {default} from "./' + to + '.js"',
Expand Down
2 changes: 1 addition & 1 deletion script/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ for (const fileName of fileNames) {
// @ts-expect-error: To do: TS should be able to assign `void` to undefined.
fs.writeFile(
new URL(fileName, base),
prettier.format(
await prettier.format(
'/* This is a theme distributed by `starry-night`.\n' +
' * It’s based on what GitHub uses on their site.\n' +
' * See <https://github.com/wooorm/starry-night> for more info. */' +
Expand Down

0 comments on commit 7c69e37

Please sign in to comment.