Update formatter config

This commit is contained in:
Dominik Jain 2025-09-11 11:35:48 +02:00
parent 4a9700d445
commit f99fedb4f1
3 changed files with 18 additions and 3 deletions

View File

@ -7,6 +7,6 @@
"trailingComma": "es5", "trailingComma": "es5",
"bracketSpacing": true, "bracketSpacing": true,
"arrowParens": "always", "arrowParens": "always",
"printWidth": 100, "printWidth": 120,
"endOfLine": "lf" "endOfLine": "auto"
} }

12
penpot-plugin/.prettierrc Normal file
View File

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

View File

@ -5,13 +5,16 @@
"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/plugin-styles": "1.3.2", "@penpot/plugin-styles": "1.3.2",
"@penpot/plugin-types": "1.3.2" "@penpot/plugin-types": "1.3.2"
}, },
"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"