返回提交历史
Modified
.eslintrc
+4
-3
Modified
.github/workflows/build.yml
+0
-2
Deleted
.github/workflows/prettier.yml
+0
-23
XFEstudio/XFESpaceNinjaServer
improve: remove prettier workflow, instead error on formatting problems (#457)
e52a6257
代码差异
3 个文件
+4
-28
@@ -4,14 +4,13 @@
4
4
"plugin:@typescript-eslint/recommended",
5
5
"plugin:@typescript-eslint/recommended-requiring-type-checking"
6
6
],
7
"plugins": ["@typescript-eslint"],
7
"plugins": ["@typescript-eslint", "prettier"],
8
8
"env": {
9
9
"browser": true,
10
10
"es6": true,
11
11
"node": true
12
12
},
13
13
"rules": {
14
"@typescript-eslint/semi": "warn",
15
14
"@typescript-eslint/explicit-function-return-type": "warn",
16
15
"@typescript-eslint/explicit-module-boundary-types": "warn",
17
16
"@typescript-eslint/restrict-template-expressions": "warn",
@@ -25,7 +24,9 @@
25
24
"@typescript-eslint/no-explicit-any": "warn",
26
25
"@typescript-eslint/no-loss-of-precision": "warn",
27
26
"no-case-declarations": "warn",
28
"no-mixed-spaces-and-tabs": "warn"
27
"prettier/prettier": "error",
28
"@typescript-eslint/semi": "error",
29
"no-mixed-spaces-and-tabs": "error"
29
30
},
30
31
"parser": "@typescript-eslint/parser",
31
32
"parserOptions": {
@@ -5,8 +5,6 @@ on:
5
5
jobs:
6
6
build:
7
7
runs-on: ubuntu-latest
8
permissions:
9
contents: write
10
8
steps:
11
9
- name: Checkout
12
10
uses: actions/checkout@v4.1.2
@@ -1,23 +0,0 @@
1
name: Prettier
2
on: [push]
3
jobs:
4
format:
5
runs-on: ubuntu-latest
6
permissions:
7
contents: write
8
steps:
9
- name: Checkout
10
uses: actions/checkout@v4.1.2
11
with:
12
ref: ${{ github.head_ref }}
13
- name: Setup Node.js environment
14
uses: actions/setup-node@v4.0.2
15
with:
16
node-version: "20.x"
17
- run: npm ci
18
- run: npm run prettier
19
- name: Commit changes
20
uses: stefanzweifel/git-auto-commit-action@v5.0.0
21
with:
22
commit_message: Apply prettier changes
23
branch: ${{ github.head_ref }}