ci: improve code auto-formatting [skip ci]
This commit is contained in:
5
.github/config/dprint.json
vendored
5
.github/config/dprint.json
vendored
@@ -12,7 +12,8 @@
|
|||||||
"arrowFunction.useParentheses": "preferNone",
|
"arrowFunction.useParentheses": "preferNone",
|
||||||
"commentLine.forceSpaceAfterSlashes": false,
|
"commentLine.forceSpaceAfterSlashes": false,
|
||||||
"taggedTemplate.spaceBeforeLiteral": false,
|
"taggedTemplate.spaceBeforeLiteral": false,
|
||||||
"nextControlFlowPosition": "nextLine"
|
"nextControlFlowPosition": "nextLine",
|
||||||
|
"spaceSurroundingProperties": false
|
||||||
},
|
},
|
||||||
"includes": ["**/*.{js,mjs}"],
|
"includes": ["**/*.{js,mjs}"],
|
||||||
"excludes": [
|
"excludes": [
|
||||||
@@ -20,6 +21,6 @@
|
|||||||
".github/scripts/quickstart/**/*"
|
".github/scripts/quickstart/**/*"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"https://plugins.dprint.dev/typescript-0.42.0.wasm"
|
"https://plugins.dprint.dev/typescript-0.68.0.wasm"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -33,7 +33,6 @@ jobs:
|
|||||||
- name: Format code
|
- name: Format code
|
||||||
run: |
|
run: |
|
||||||
dprint fmt --config .github/config/dprint.json
|
dprint fmt --config .github/config/dprint.json
|
||||||
npm run format
|
|
||||||
- name: Publish formatted code
|
- name: Publish formatted code
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
|
|||||||
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@@ -43,7 +43,6 @@ jobs:
|
|||||||
cp /home/runner/.dprint/bin/dprint /usr/local/bin/dprint
|
cp /home/runner/.dprint/bin/dprint /usr/local/bin/dprint
|
||||||
npm install -g eslint
|
npm install -g eslint
|
||||||
dprint fmt --config .github/config/dprint.json
|
dprint fmt --config .github/config/dprint.json
|
||||||
npm run format
|
|
||||||
- name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
|
- name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
|
||||||
run: docker build -t lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') .
|
run: docker build -t lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') .
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
"quickstart": "node .github/scripts/quickstart/index.mjs",
|
"quickstart": "node .github/scripts/quickstart/index.mjs",
|
||||||
"preview": "node .github/scripts/preview.mjs",
|
"preview": "node .github/scripts/preview.mjs",
|
||||||
"linter": "eslint source/**/*.mjs --quiet",
|
"linter": "eslint source/**/*.mjs --quiet",
|
||||||
"format": "eslint source/**/*.mjs --fix",
|
|
||||||
"dev": "nodemon source/app/web/index.mjs -e mjs,css,ejs,json",
|
"dev": "nodemon source/app/web/index.mjs -e mjs,css,ejs,json",
|
||||||
"postinstall": "node node_modules/puppeteer/install.js",
|
"postinstall": "node node_modules/puppeteer/install.js",
|
||||||
"indepth": "node source/plugins/languages/analyzers.mjs"
|
"indepth": "node source/plugins/languages/analyzers.mjs"
|
||||||
|
|||||||
Reference in New Issue
Block a user