XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

ci: improve prettier coverage (#1523)

All prettier violations will now be reported, not just what eslint checks. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1523 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

db1dd219
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

2 个文件 +11 -1
Modified .github/workflows/build.yml +10 -1
@@ -13,4 +13,13 @@ jobs:
13 13 - run: npm ci
14 14 - run: cp config.json.example config.json
15 15 - run: npm run verify
16 - run: npm run lint
16 - run: npm run lint:ci
17 - run: npm run prettier
18 - name: Fail if there are uncommitted changes
19 run: |
20 if [[ -n "$(git status --porcelain)" ]]; then
21 echo "Uncommitted changes detected:"
22 git status
23 git diff
24 exit 1
25 fi
Modified package.json +1 -0
@@ -9,6 +9,7 @@
9 9 "build": "tsc --incremental --sourceMap && ncp static/webui build/static/webui",
10 10 "verify": "tsgo --noEmit",
11 11 "lint": "eslint --ext .ts .",
12 "lint:ci": "eslint --ext .ts --rule \"prettier/prettier: off\" .",
12 13 "lint:fix": "eslint --fix --ext .ts .",
13 14 "prettier": "prettier --write .",
14 15 "update-translations": "cd scripts && node update-translations.js"