diff --git a/.github/config/dprint.json b/.github/config/dprint.json index cd648004..e7c6bfbe 100644 --- a/.github/config/dprint.json +++ b/.github/config/dprint.json @@ -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" ] } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6403441f..74e67185 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0a00829..d7989a0f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/package.json b/package.json index b38162f3..0b1a128b 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "quickstart": "node .github/scripts/quickstart/index.mjs", "preview": "node .github/scripts/preview.mjs", "linter": "eslint source/**/*.mjs --quiet", - "format": "eslint source/**/*.mjs --fix", "dev": "nodemon source/app/web/index.mjs -e mjs,css,ejs,json", "postinstall": "node node_modules/puppeteer/install.js", "indepth": "node source/plugins/languages/analyzers.mjs"