ci: improve code auto-formatting [skip ci]

This commit is contained in:
lowlighter
2022-04-23 11:02:06 -04:00
parent 6e0940043b
commit 683df66ffa
4 changed files with 3 additions and 5 deletions

View File

@@ -12,7 +12,8 @@
"arrowFunction.useParentheses": "preferNone",
"commentLine.forceSpaceAfterSlashes": false,
"taggedTemplate.spaceBeforeLiteral": false,
"nextControlFlowPosition": "nextLine"
"nextControlFlowPosition": "nextLine",
"spaceSurroundingProperties": false
},
"includes": ["**/*.{js,mjs}"],
"excludes": [
@@ -20,6 +21,6 @@
".github/scripts/quickstart/**/*"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.42.0.wasm"
"https://plugins.dprint.dev/typescript-0.68.0.wasm"
]
}

View File

@@ -33,7 +33,6 @@ jobs:
- name: Format code
run: |
dprint fmt --config .github/config/dprint.json
npm run format
- name: Publish formatted code
run: |
set +e

View File

@@ -43,7 +43,6 @@ jobs:
cp /home/runner/.dprint/bin/dprint /usr/local/bin/dprint
npm install -g eslint
dprint fmt --config .github/config/dprint.json
npm run format
- name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
run: docker build -t lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') .
- name: Run tests