Add prettier
This commit is contained in:
parent
7811574d5b
commit
cf29f2588e
3 changed files with 83 additions and 5 deletions
|
@ -11,5 +11,10 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"astro": "^3.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^3.0.3",
|
||||
"prettier-plugin-astro": "^0.12.1",
|
||||
"prettier-plugin-organize-imports": "^3.2.3"
|
||||
}
|
||||
}
|
|
@ -7,7 +7,18 @@ settings:
|
|||
dependencies:
|
||||
astro:
|
||||
specifier: ^3.4.4
|
||||
version: 3.4.4
|
||||
version: 3.4.4(typescript@5.2.2)
|
||||
|
||||
devDependencies:
|
||||
prettier:
|
||||
specifier: ^3.0.3
|
||||
version: 3.0.3
|
||||
prettier-plugin-astro:
|
||||
specifier: ^0.12.1
|
||||
version: 0.12.1
|
||||
prettier-plugin-organize-imports:
|
||||
specifier: ^3.2.3
|
||||
version: 3.2.3(prettier@3.0.3)(typescript@5.2.2)
|
||||
|
||||
packages:
|
||||
|
||||
|
@ -19,6 +30,10 @@ packages:
|
|||
'@jridgewell/trace-mapping': 0.3.20
|
||||
dev: false
|
||||
|
||||
/@astrojs/compiler@1.8.2:
|
||||
resolution: {integrity: sha512-o/ObKgtMzl8SlpIdzaxFnt7SATKPxu4oIP/1NL+HDJRzxfJcAkOTAb/ZKMRyULbz4q+1t2/DAebs2Z1QairkZw==}
|
||||
dev: true
|
||||
|
||||
/@astrojs/compiler@2.3.0:
|
||||
resolution: {integrity: sha512-pxYRAaRdMS6XUll8lbFM+Lr0DI1HKIDT+VpiC+S+9di5H/nmm3znZOgdMlLiMxADot+56eps+M1BvtKfQremXA==}
|
||||
dev: false
|
||||
|
@ -33,7 +48,7 @@ packages:
|
|||
astro: ^3.3.0
|
||||
dependencies:
|
||||
'@astrojs/prism': 3.0.0
|
||||
astro: 3.4.4
|
||||
astro: 3.4.4(typescript@5.2.2)
|
||||
github-slugger: 2.0.0
|
||||
import-meta-resolve: 3.1.1
|
||||
mdast-util-definitions: 6.0.0
|
||||
|
@ -892,7 +907,7 @@ packages:
|
|||
resolution: {integrity: sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==}
|
||||
dev: false
|
||||
|
||||
/astro@3.4.4:
|
||||
/astro@3.4.4(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-Xyhif8RtKpNLo/TXN0Klxt0uq/2xNzbJ1tZ2udn/QguT9a6iGeO+N1iRSU5a4FrZNKb5jyg7koLpwfEVJjj7cw==}
|
||||
engines: {node: '>=18.14.1', npm: '>=6.14.0'}
|
||||
hasBin: true
|
||||
|
@ -947,7 +962,7 @@ packages:
|
|||
shikiji: 0.6.12
|
||||
string-width: 6.1.0
|
||||
strip-ansi: 7.1.0
|
||||
tsconfck: 3.0.0
|
||||
tsconfck: 3.0.0(typescript@5.2.2)
|
||||
unist-util-visit: 4.1.2
|
||||
vfile: 5.3.7
|
||||
vite: 4.5.0
|
||||
|
@ -2754,6 +2769,38 @@ packages:
|
|||
which-pm: 2.0.0
|
||||
dev: false
|
||||
|
||||
/prettier-plugin-astro@0.12.1:
|
||||
resolution: {integrity: sha512-1mlNIU/cV+25oB4z5wXzOz2fSDcawG3MsVUwgw2i8VSy7voLSENMSpR1juu3U5MAVUo3owuyax11QuylbpuqOQ==}
|
||||
engines: {node: ^14.15.0 || >=16.0.0}
|
||||
dependencies:
|
||||
'@astrojs/compiler': 1.8.2
|
||||
prettier: 3.0.3
|
||||
sass-formatter: 0.7.8
|
||||
dev: true
|
||||
|
||||
/prettier-plugin-organize-imports@3.2.3(prettier@3.0.3)(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-KFvk8C/zGyvUaE3RvxN2MhCLwzV6OBbFSkwZ2OamCrs9ZY4i5L77jQ/w4UmUr+lqX8qbaqVq6bZZkApn+IgJSg==}
|
||||
peerDependencies:
|
||||
'@volar/vue-language-plugin-pug': ^1.0.4
|
||||
'@volar/vue-typescript': ^1.0.4
|
||||
prettier: '>=2.0'
|
||||
typescript: '>=2.9'
|
||||
peerDependenciesMeta:
|
||||
'@volar/vue-language-plugin-pug':
|
||||
optional: true
|
||||
'@volar/vue-typescript':
|
||||
optional: true
|
||||
dependencies:
|
||||
prettier: 3.0.3
|
||||
typescript: 5.2.2
|
||||
dev: true
|
||||
|
||||
/prettier@3.0.3:
|
||||
resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==}
|
||||
engines: {node: '>=14'}
|
||||
hasBin: true
|
||||
dev: true
|
||||
|
||||
/prismjs@1.29.0:
|
||||
resolution: {integrity: sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==}
|
||||
engines: {node: '>=6'}
|
||||
|
@ -2972,6 +3019,10 @@ packages:
|
|||
queue-microtask: 1.2.3
|
||||
dev: false
|
||||
|
||||
/s.color@0.0.15:
|
||||
resolution: {integrity: sha512-AUNrbEUHeKY8XsYr/DYpl+qk5+aM+DChopnWOPEzn8YKzOhv4l2zH6LzZms3tOZP3wwdOyc0RmTciyi46HLIuA==}
|
||||
dev: true
|
||||
|
||||
/sade@1.8.1:
|
||||
resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==}
|
||||
engines: {node: '>=6'}
|
||||
|
@ -2987,6 +3038,12 @@ packages:
|
|||
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
|
||||
dev: false
|
||||
|
||||
/sass-formatter@0.7.8:
|
||||
resolution: {integrity: sha512-7fI2a8THglflhhYis7k06eUf92VQuJoXzEs2KRP0r1bluFxKFvLx0Ns7c478oYGM0fPfrr846ZRWVi2MAgHt9Q==}
|
||||
dependencies:
|
||||
suf-log: 2.5.3
|
||||
dev: true
|
||||
|
||||
/sax@1.3.0:
|
||||
resolution: {integrity: sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==}
|
||||
dev: false
|
||||
|
@ -3200,6 +3257,12 @@ packages:
|
|||
dev: false
|
||||
optional: true
|
||||
|
||||
/suf-log@2.5.3:
|
||||
resolution: {integrity: sha512-KvC8OPjzdNOe+xQ4XWJV2whQA0aM1kGVczMQ8+dStAO6KfEB140JEVQ9dE76ONZ0/Ylf67ni4tILPJB41U0eow==}
|
||||
dependencies:
|
||||
s.color: 0.0.15
|
||||
dev: true
|
||||
|
||||
/supports-color@5.5.0:
|
||||
resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}
|
||||
engines: {node: '>=4'}
|
||||
|
@ -3276,7 +3339,7 @@ packages:
|
|||
resolution: {integrity: sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==}
|
||||
dev: false
|
||||
|
||||
/tsconfck@3.0.0:
|
||||
/tsconfck@3.0.0(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-w3wnsIrJNi7avf4Zb0VjOoodoO0woEqGgZGQm+LHH9przdUI+XDKsWAXwxHA1DaRTjeuZNcregSzr7RaA8zG9A==}
|
||||
engines: {node: ^18 || >=20}
|
||||
hasBin: true
|
||||
|
@ -3285,6 +3348,8 @@ packages:
|
|||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
dependencies:
|
||||
typescript: 5.2.2
|
||||
dev: false
|
||||
|
||||
/tunnel-agent@0.6.0:
|
||||
|
@ -3300,6 +3365,11 @@ packages:
|
|||
engines: {node: '>=12.20'}
|
||||
dev: false
|
||||
|
||||
/typescript@5.2.2:
|
||||
resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==}
|
||||
engines: {node: '>=14.17'}
|
||||
hasBin: true
|
||||
|
||||
/unherit@3.0.1:
|
||||
resolution: {integrity: sha512-akOOQ/Yln8a2sgcLj4U0Jmx0R5jpIg2IUyRrWOzmEbjBtGzBdHtSeFKgoEcoH4KYIG/Pb8GQ/BwtYm0GCq1Sqg==}
|
||||
dev: false
|
||||
|
|
3
prettier.config.cjs
Normal file
3
prettier.config.cjs
Normal file
|
@ -0,0 +1,3 @@
|
|||
module.exports = {
|
||||
plugins: ["prettier-plugin-organize-imports", "prettier-plugin-astro"],
|
||||
};
|
Loading…
Reference in a new issue