mirror of
https://github.com/penpot/penpot-export.git
synced 2025-01-21 06:02:28 -05:00
build(cli): set up code formatter
This commit is contained in:
parent
712ae191e7
commit
aa2b97c571
4 changed files with 17 additions and 1 deletions
3
packages/penpot-css-export/.prettierignore
Normal file
3
packages/penpot-css-export/.prettierignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
# yarn-managed files
|
||||
package.json
|
||||
yarn.lock
|
6
packages/penpot-css-export/.prettierrc.json
Normal file
6
packages/penpot-css-export/.prettierrc.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"trailingComma": "all",
|
||||
"tabWidth": 2,
|
||||
"semi": false,
|
||||
"singleQuote": true
|
||||
}
|
|
@ -12,10 +12,12 @@
|
|||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"format": "prettier -w .",
|
||||
"dev": "tsc-watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"node-fetch": "2"
|
||||
"node-fetch": "2",
|
||||
"prettier": "^3.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.5.0",
|
||||
|
|
|
@ -199,6 +199,11 @@ pause-stream@0.0.11:
|
|||
dependencies:
|
||||
through "~2.3"
|
||||
|
||||
prettier@^3.0.2:
|
||||
version "3.0.2"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.2.tgz#78fcecd6d870551aa5547437cdae39d4701dca5b"
|
||||
integrity sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==
|
||||
|
||||
ps-tree@^1.2.0:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.2.0.tgz#5e7425b89508736cdd4f2224d028f7bb3f722ebd"
|
||||
|
|
Loading…
Add table
Reference in a new issue