Move prettier configuration to top level

This commit is contained in:
Dominik Jain 2025-10-11 22:22:58 +02:00
parent 0b9404e2a2
commit 8a6848a663
13 changed files with 26 additions and 65 deletions

4
.prettierignore Normal file
View File

@ -0,0 +1,4 @@
*.md
*.yml
*.json
python-scripts/

View File

@ -19,6 +19,9 @@
"dependencies": { "dependencies": {
"concurrently": "^8.2.2", "concurrently": "^8.2.2",
"kill-port": "^2.0.1" "kill-port": "^2.0.1"
},
"devDependencies": {
"prettier": "^3.0.0"
} }
}, },
"node_modules/penpot-mcp": { "node_modules/penpot-mcp": {

View File

@ -1 +1 @@
export * from './types'; export * from "./types";

View File

@ -1,6 +1,6 @@
/** /**
* Result of a plugin task execution. * Result of a plugin task execution.
* *
* Contains the outcome status of a task and any additional result data. * Contains the outcome status of a task and any additional result data.
*/ */
export interface PluginTaskResult<T> { export interface PluginTaskResult<T> {
@ -12,7 +12,7 @@ export interface PluginTaskResult<T> {
/** /**
* Request message sent from server to plugin. * Request message sent from server to plugin.
* *
* Contains a unique identifier, task name, and parameters for execution. * Contains a unique identifier, task name, and parameters for execution.
*/ */
export interface PluginTaskRequest { export interface PluginTaskRequest {
@ -20,12 +20,12 @@ export interface PluginTaskRequest {
* Unique identifier for request/response correlation. * Unique identifier for request/response correlation.
*/ */
id: string; id: string;
/** /**
* The name of the task to execute. * The name of the task to execute.
*/ */
task: string; task: string;
/** /**
* The parameters for task execution. * The parameters for task execution.
*/ */
@ -34,7 +34,7 @@ export interface PluginTaskRequest {
/** /**
* Response message sent from plugin back to server. * Response message sent from plugin back to server.
* *
* Contains the original request ID and the execution result. * Contains the original request ID and the execution result.
*/ */
export interface PluginTaskResponse<T> { export interface PluginTaskResponse<T> {

View File

@ -1,3 +0,0 @@
*.md
*.yml

View File

@ -27,7 +27,6 @@
"@types/node": "^20.0.0", "@types/node": "^20.0.0",
"@types/ws": "^8.5.10", "@types/ws": "^8.5.10",
"esbuild": "^0.19.0", "esbuild": "^0.19.0",
"prettier": "^3.0.0",
"ts-node": "^10.9.0", "ts-node": "^10.9.0",
"typescript": "^5.0.0" "typescript": "^5.0.0"
} }
@ -37,6 +36,9 @@
"dependencies": { "dependencies": {
"concurrently": "^8.2.2", "concurrently": "^8.2.2",
"kill-port": "^2.0.1" "kill-port": "^2.0.1"
},
"devDependencies": {
"prettier": "^3.0.0"
} }
}, },
"../common": { "../common": {
@ -1934,22 +1936,6 @@
"node": ">=16.20.0" "node": ">=16.20.0"
} }
}, },
"node_modules/prettier": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz",
"integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==",
"dev": true,
"license": "MIT",
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/process-warning": { "node_modules/process-warning": {
"version": "5.0.0", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz", "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz",

View File

@ -10,9 +10,7 @@
"build:types": "tsc --emitDeclarationOnly --outDir dist", "build:types": "tsc --emitDeclarationOnly --outDir dist",
"build:full": "npm run build && npm run build:types", "build:full": "npm run build && npm run build:types",
"start": "node dist/index.js", "start": "node dist/index.js",
"dev": "node --loader ts-node/esm src/index.ts", "dev": "node --loader ts-node/esm src/index.ts"
"format": "prettier --write .",
"format:check": "prettier --check ."
}, },
"keywords": [ "keywords": [
"mcp", "mcp",
@ -40,7 +38,6 @@
"@types/node": "^20.0.0", "@types/node": "^20.0.0",
"@types/ws": "^8.5.10", "@types/ws": "^8.5.10",
"esbuild": "^0.19.0", "esbuild": "^0.19.0",
"prettier": "^3.0.0",
"ts-node": "^10.9.0", "ts-node": "^10.9.0",
"typescript": "^5.0.0" "typescript": "^5.0.0"
}, },

View File

@ -6,7 +6,8 @@
"install:all": "concurrently --names \"COMMON,MCP-SERVER,PLUGIN\" --prefix-colors \"green,cyan,magenta\" \"npm --prefix common install\" \"npm --prefix mcp-server install\" \"npm --prefix penpot-plugin install\"", "install:all": "concurrently --names \"COMMON,MCP-SERVER,PLUGIN\" --prefix-colors \"green,cyan,magenta\" \"npm --prefix common install\" \"npm --prefix mcp-server install\" \"npm --prefix penpot-plugin install\"",
"build:all": "concurrently --names \"COMMON,MCP-SERVER,PLUGIN\" --prefix-colors \"green,cyan,magenta\" --success first \"npm --prefix common install && npm --prefix common run build\" \"npm --prefix mcp-server run build\" \"npm --prefix penpot-plugin run build\"", "build:all": "concurrently --names \"COMMON,MCP-SERVER,PLUGIN\" --prefix-colors \"green,cyan,magenta\" --success first \"npm --prefix common install && npm --prefix common run build\" \"npm --prefix mcp-server run build\" \"npm --prefix penpot-plugin run build\"",
"start:all": "concurrently --names \"MCP-SERVER,PLUGIN-SERVER\" --prefix-colors \"cyan,magenta\" --kill-others-on-fail \"npm --prefix mcp-server start\" \"npm --prefix penpot-plugin run dev\"", "start:all": "concurrently --names \"MCP-SERVER,PLUGIN-SERVER\" --prefix-colors \"cyan,magenta\" --kill-others-on-fail \"npm --prefix mcp-server start\" \"npm --prefix penpot-plugin run dev\"",
"bootstrap": "npm run install:all && npm run build:all && npm run start:all" "bootstrap": "npm run install:all && npm run build:all && npm run start:all",
"format": "prettier --write ."
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -16,5 +17,8 @@
"dependencies": { "dependencies": {
"concurrently": "^8.2.2", "concurrently": "^8.2.2",
"kill-port": "^2.0.1" "kill-port": "^2.0.1"
},
"devDependencies": {
"prettier": "^3.0.0"
} }
} }

View File

@ -1 +0,0 @@
*.md

View File

@ -1,12 +0,0 @@
{
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 120,
"endOfLine": "auto"
}

View File

@ -14,7 +14,6 @@
"penpot-mcp": "file:.." "penpot-mcp": "file:.."
}, },
"devDependencies": { "devDependencies": {
"prettier": "^3.0.0",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vite": "^7.0.5", "vite": "^7.0.5",
"vite-live-preview": "^0.3.2" "vite-live-preview": "^0.3.2"
@ -25,6 +24,9 @@
"dependencies": { "dependencies": {
"concurrently": "^8.2.2", "concurrently": "^8.2.2",
"kill-port": "^2.0.1" "kill-port": "^2.0.1"
},
"devDependencies": {
"prettier": "^3.0.0"
} }
}, },
"../common": { "../common": {
@ -998,22 +1000,6 @@
"node": "^10 || ^12 || >=14" "node": "^10 || ^12 || >=14"
} }
}, },
"node_modules/prettier": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz",
"integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==",
"dev": true,
"license": "MIT",
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/rollup": { "node_modules/rollup": {
"version": "4.45.1", "version": "4.45.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.45.1.tgz", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.45.1.tgz",

View File

@ -5,9 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite build --watch", "dev": "vite build --watch",
"build": "tsc && vite build", "build": "tsc && vite build"
"format": "prettier --write .",
"format:check": "prettier --check ."
}, },
"dependencies": { "dependencies": {
"@penpot-mcp/common": "file:../common", "@penpot-mcp/common": "file:../common",
@ -16,7 +14,6 @@
"penpot-mcp": "file:.." "penpot-mcp": "file:.."
}, },
"devDependencies": { "devDependencies": {
"prettier": "^3.0.0",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vite": "^7.0.5", "vite": "^7.0.5",
"vite-live-preview": "^0.3.2" "vite-live-preview": "^0.3.2"