mirror of
https://github.com/portainer/portainer.git
synced 2026-06-23 04:30:16 +00:00
fix(pnpm): pnpm format command failing [R8S-1071] (#2932)
This commit is contained in:
@@ -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,4 +1,4 @@
|
|||||||
version: "2"
|
version: '2'
|
||||||
linters:
|
linters:
|
||||||
default: none
|
default: none
|
||||||
enable:
|
enable:
|
||||||
|
|||||||
+5
-5
@@ -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
@@ -1,3 +1,5 @@
|
|||||||
dist
|
dist
|
||||||
api/datastore/test_data
|
api/datastore/test_data
|
||||||
coverage
|
coverage
|
||||||
|
|
||||||
|
pnpm-lock.yaml
|
||||||
|
|||||||
@@ -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
@@ -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"
|
||||||
|
|||||||
@@ -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']
|
||||||
|
|||||||
Reference in New Issue
Block a user