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:
|
||||
value: |
|
||||
# Welcome!
|
||||
|
||||
|
||||
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.
|
||||
|
||||
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.**
|
||||
|
||||
- type: textarea
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version: "2"
|
||||
version: '2'
|
||||
linters:
|
||||
default: none
|
||||
enable:
|
||||
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
version: "2"
|
||||
version: '2'
|
||||
|
||||
run:
|
||||
allow-parallel-runners: true
|
||||
@@ -32,7 +32,7 @@ linters:
|
||||
- exptostd
|
||||
settings:
|
||||
staticcheck:
|
||||
checks: ["all", "-ST1003", "-ST1005", "-ST1016", "-SA1019", "-QF1003"]
|
||||
checks: ['all', '-ST1003', '-ST1005', '-ST1016', '-SA1019', '-QF1003']
|
||||
depguard:
|
||||
rules:
|
||||
main:
|
||||
@@ -83,7 +83,7 @@ linters:
|
||||
- ruleguard
|
||||
settings:
|
||||
ruleguard:
|
||||
rules: "./analysis/ssrf.go"
|
||||
rules: './analysis/ssrf.go'
|
||||
forbidigo:
|
||||
forbid:
|
||||
- pattern: ^tls\.Config$
|
||||
@@ -91,9 +91,9 @@ linters:
|
||||
- pattern: ^tls\.Config\.(InsecureSkipVerify|MinVersion|MaxVersion|CipherSuites|CurvePreferences)$
|
||||
msg: Do not set this field directly, use crypto.CreateTLSConfiguration() instead
|
||||
- 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)$
|
||||
msg: "Not allowed because of FIPS mode"
|
||||
msg: 'Not allowed because of FIPS mode'
|
||||
analyze-types: true
|
||||
exclusions:
|
||||
generated: lax
|
||||
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
dist
|
||||
api/datastore/test_data
|
||||
coverage
|
||||
coverage
|
||||
|
||||
pnpm-lock.yaml
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
'*.(js|ts){,x}': 'pnpm run lint',
|
||||
'*.(js|ts){,x}': 'pnpm eslint --cache --fix',
|
||||
'*.(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',
|
||||
};
|
||||
|
||||
+3
-3
@@ -20,8 +20,8 @@
|
||||
"dev": "webpack-dev-server",
|
||||
"start": "webpack -w",
|
||||
"build": "webpack",
|
||||
"format": "prettier --log-level warn --write",
|
||||
"lint": "eslint --cache --fix",
|
||||
"format": "prettier --log-level warn --write \"**/*.{js,css,html,jsx,tsx,ts}\"",
|
||||
"lint": "eslint --cache --fix \"./**/*.{js,jsx,ts,tsx}\"",
|
||||
"test": "vitest run",
|
||||
"sb": "pnpm run storybook",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
@@ -29,7 +29,7 @@
|
||||
"analyze-webpack": "webpack --config ./webpack/webpack.analyze.js",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"generate-api": "openapi-ts",
|
||||
"postgenerate-api": "pnpm format app/react/portainer/generated-api/**/*.gen.ts"
|
||||
"postgenerate-api": "pnpm format"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^22.22.1"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version: "3.9"
|
||||
version: '3.9'
|
||||
services:
|
||||
redis:
|
||||
image: "redis:alpine"
|
||||
image: 'redis:alpine'
|
||||
|
||||
@@ -4,4 +4,4 @@ services:
|
||||
image: nginx:latest
|
||||
failing-service:
|
||||
image: busybox
|
||||
command: ["false"]
|
||||
command: ['false']
|
||||
|
||||
Reference in New Issue
Block a user