fix(pnpm): pnpm format command failing [R8S-1071] (#2932)

This commit is contained in:
nickl-portainer
2026-06-18 13:27:01 +12:00
committed by GitHub
parent 0dfa0266c7
commit 0dfd27f08c
8 changed files with 19 additions and 17 deletions
+2 -2
View File
@@ -3,13 +3,13 @@ body:
attributes: attributes:
value: | value: |
# Welcome! # Welcome!
Thanks for suggesting an idea for Portainer! Thanks for suggesting an idea for Portainer!
Before opening a new idea or feature request, make sure that we do not have any duplicates already open. You can ensure this by [searching this discussion category](https://github.com/orgs/portainer/discussions/categories/ideas). If there is a duplicate, please add a comment to the existing idea instead. Before opening a new idea or feature request, make sure that we do not have any duplicates already open. You can ensure this by [searching this discussion category](https://github.com/orgs/portainer/discussions/categories/ideas). If there is a duplicate, please add a comment to the existing idea instead.
Also, be sure to check our [knowledge base](https://portal.portainer.io/knowledge) and [documentation](https://docs.portainer.io) as they may point you toward a solution. Also, be sure to check our [knowledge base](https://portal.portainer.io/knowledge) and [documentation](https://docs.portainer.io) as they may point you toward a solution.
**DO NOT FILE DUPLICATE REQUESTS.** **DO NOT FILE DUPLICATE REQUESTS.**
- type: textarea - type: textarea
+1 -1
View File
@@ -1,4 +1,4 @@
version: "2" version: '2'
linters: linters:
default: none default: none
enable: enable:
+5 -5
View File
@@ -1,4 +1,4 @@
version: "2" version: '2'
run: run:
allow-parallel-runners: true allow-parallel-runners: true
@@ -32,7 +32,7 @@ linters:
- exptostd - exptostd
settings: settings:
staticcheck: staticcheck:
checks: ["all", "-ST1003", "-ST1005", "-ST1016", "-SA1019", "-QF1003"] checks: ['all', '-ST1003', '-ST1005', '-ST1016', '-SA1019', '-QF1003']
depguard: depguard:
rules: rules:
main: main:
@@ -83,7 +83,7 @@ linters:
- ruleguard - ruleguard
settings: settings:
ruleguard: ruleguard:
rules: "./analysis/ssrf.go" rules: './analysis/ssrf.go'
forbidigo: forbidigo:
forbid: forbid:
- pattern: ^tls\.Config$ - pattern: ^tls\.Config$
@@ -91,9 +91,9 @@ linters:
- pattern: ^tls\.Config\.(InsecureSkipVerify|MinVersion|MaxVersion|CipherSuites|CurvePreferences)$ - pattern: ^tls\.Config\.(InsecureSkipVerify|MinVersion|MaxVersion|CipherSuites|CurvePreferences)$
msg: Do not set this field directly, use crypto.CreateTLSConfiguration() instead msg: Do not set this field directly, use crypto.CreateTLSConfiguration() instead
- pattern: ^object\.(Commit|Tag)\.Verify$ - pattern: ^object\.(Commit|Tag)\.Verify$
msg: "Not allowed because of FIPS mode" msg: 'Not allowed because of FIPS mode'
- pattern: ^(types\.SystemContext\.)?(DockerDaemonInsecureSkipTLSVerify|DockerInsecureSkipTLSVerify|OCIInsecureSkipTLSVerify)$ - pattern: ^(types\.SystemContext\.)?(DockerDaemonInsecureSkipTLSVerify|DockerInsecureSkipTLSVerify|OCIInsecureSkipTLSVerify)$
msg: "Not allowed because of FIPS mode" msg: 'Not allowed because of FIPS mode'
analyze-types: true analyze-types: true
exclusions: exclusions:
generated: lax generated: lax
+3 -1
View File
@@ -1,3 +1,5 @@
dist dist
api/datastore/test_data api/datastore/test_data
coverage coverage
pnpm-lock.yaml
+2 -2
View File
@@ -1,6 +1,6 @@
module.exports = { module.exports = {
'*.(js|ts){,x}': 'pnpm run lint', '*.(js|ts){,x}': 'pnpm eslint --cache --fix',
'*.(ts){,x}': () => 'tsc --noEmit', '*.(ts){,x}': () => 'tsc --noEmit',
'*.{js,ts,tsx,css,md,html,json}': 'pnpm run format', '*.{js,ts,tsx,css,md,html,json}': 'pnpm prettier --log-level warn --write',
'*.go': () => 'make lint-server', '*.go': () => 'make lint-server',
}; };
+3 -3
View File
@@ -20,8 +20,8 @@
"dev": "webpack-dev-server", "dev": "webpack-dev-server",
"start": "webpack -w", "start": "webpack -w",
"build": "webpack", "build": "webpack",
"format": "prettier --log-level warn --write", "format": "prettier --log-level warn --write \"**/*.{js,css,html,jsx,tsx,ts}\"",
"lint": "eslint --cache --fix", "lint": "eslint --cache --fix \"./**/*.{js,jsx,ts,tsx}\"",
"test": "vitest run", "test": "vitest run",
"sb": "pnpm run storybook", "sb": "pnpm run storybook",
"storybook": "storybook dev -p 6006", "storybook": "storybook dev -p 6006",
@@ -29,7 +29,7 @@
"analyze-webpack": "webpack --config ./webpack/webpack.analyze.js", "analyze-webpack": "webpack --config ./webpack/webpack.analyze.js",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"generate-api": "openapi-ts", "generate-api": "openapi-ts",
"postgenerate-api": "pnpm format app/react/portainer/generated-api/**/*.gen.ts" "postgenerate-api": "pnpm format"
}, },
"engines": { "engines": {
"node": "^22.22.1" "node": "^22.22.1"
+2 -2
View File
@@ -1,4 +1,4 @@
version: "3.9" version: '3.9'
services: services:
redis: redis:
image: "redis:alpine" image: 'redis:alpine'
@@ -4,4 +4,4 @@ services:
image: nginx:latest image: nginx:latest
failing-service: failing-service:
image: busybox image: busybox
command: ["false"] command: ['false']