mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
add prettier
This commit is contained in:
@@ -19,6 +19,12 @@ tasks:
|
|||||||
cmds:
|
cmds:
|
||||||
- pnpm dev --host={{.HOST}} --port={{.PORT}}
|
- pnpm dev --host={{.HOST}} --port={{.PORT}}
|
||||||
|
|
||||||
|
lint:
|
||||||
|
desc: Lint website
|
||||||
|
deps: [install]
|
||||||
|
cmds:
|
||||||
|
- pnpm lint
|
||||||
|
|
||||||
build:
|
build:
|
||||||
desc: Build website
|
desc: Build website
|
||||||
deps: [install]
|
deps: [install]
|
||||||
|
@@ -6,7 +6,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vitepress dev",
|
"dev": "vitepress dev",
|
||||||
"build": "vitepress build",
|
"build": "vitepress build",
|
||||||
"preview": "vitepress preview"
|
"preview": "vitepress preview",
|
||||||
|
"lint": "prettier --check ."
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
@@ -15,6 +16,7 @@
|
|||||||
"@types/markdown-it": "^14.1.2",
|
"@types/markdown-it": "^14.1.2",
|
||||||
"@types/node": "^24.1.0",
|
"@types/node": "^24.1.0",
|
||||||
"netlify-cli": "^23.1.1",
|
"netlify-cli": "^23.1.1",
|
||||||
|
"prettier": "^3.6.2",
|
||||||
"vitepress": "^1.6.3",
|
"vitepress": "^1.6.3",
|
||||||
"vitepress-plugin-group-icons": "^1.6.1",
|
"vitepress-plugin-group-icons": "^1.6.1",
|
||||||
"vitepress-plugin-tabs": "^0.7.1",
|
"vitepress-plugin-tabs": "^0.7.1",
|
||||||
|
10
website/pnpm-lock.yaml
generated
10
website/pnpm-lock.yaml
generated
@@ -17,6 +17,9 @@ importers:
|
|||||||
netlify-cli:
|
netlify-cli:
|
||||||
specifier: ^23.1.1
|
specifier: ^23.1.1
|
||||||
version: 23.1.1(@types/node@24.1.0)(picomatch@4.0.3)(rollup@4.45.1)
|
version: 23.1.1(@types/node@24.1.0)(picomatch@4.0.3)(rollup@4.45.1)
|
||||||
|
prettier:
|
||||||
|
specifier: ^3.6.2
|
||||||
|
version: 3.6.2
|
||||||
vitepress:
|
vitepress:
|
||||||
specifier: ^1.6.3
|
specifier: ^1.6.3
|
||||||
version: 1.6.3(@algolia/client-search@5.34.1)(@types/node@24.1.0)(jwt-decode@4.0.0)(postcss@8.5.6)(search-insights@2.17.3)(typescript@5.9.2)
|
version: 1.6.3(@algolia/client-search@5.34.1)(@types/node@24.1.0)(jwt-decode@4.0.0)(postcss@8.5.6)(search-insights@2.17.3)(typescript@5.9.2)
|
||||||
@@ -3555,6 +3558,11 @@ packages:
|
|||||||
resolution: {integrity: sha512-QCYG84SgGyGzqJ/vlMsxeXd/pgL/I94ixdNFyh1PusWmTCyVfPJjZ1K1jvHtsbfnXQs2TSkEP2fR7QiMZAnKFQ==}
|
resolution: {integrity: sha512-QCYG84SgGyGzqJ/vlMsxeXd/pgL/I94ixdNFyh1PusWmTCyVfPJjZ1K1jvHtsbfnXQs2TSkEP2fR7QiMZAnKFQ==}
|
||||||
engines: {node: '>= 0.6'}
|
engines: {node: '>= 0.6'}
|
||||||
|
|
||||||
|
prettier@3.6.2:
|
||||||
|
resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}
|
||||||
|
engines: {node: '>=14'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
pretty-ms@9.2.0:
|
pretty-ms@9.2.0:
|
||||||
resolution: {integrity: sha512-4yf0QO/sllf/1zbZWYnvWw3NxCQwLXKzIj0G849LSufP15BXKM0rbD2Z3wVnkMfjdn/CB0Dpp444gYAACdsplg==}
|
resolution: {integrity: sha512-4yf0QO/sllf/1zbZWYnvWw3NxCQwLXKzIj0G849LSufP15BXKM0rbD2Z3wVnkMfjdn/CB0Dpp444gYAACdsplg==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
@@ -8305,6 +8313,8 @@ snapshots:
|
|||||||
|
|
||||||
precond@0.2.3: {}
|
precond@0.2.3: {}
|
||||||
|
|
||||||
|
prettier@3.6.2: {}
|
||||||
|
|
||||||
pretty-ms@9.2.0:
|
pretty-ms@9.2.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
parse-ms: 4.0.0
|
parse-ms: 4.0.0
|
||||||
|
19
website/prettier.config.js
Normal file
19
website/prettier.config.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/**
|
||||||
|
* @see https://prettier.io/docs/configuration
|
||||||
|
* @type {import("prettier").Config}
|
||||||
|
*/
|
||||||
|
const config = {
|
||||||
|
trailingComma: 'none',
|
||||||
|
singleQuote: true,
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ['*.md'],
|
||||||
|
options: {
|
||||||
|
printWidth: 80,
|
||||||
|
proseWrap: 'always'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
export default config;
|
Reference in New Issue
Block a user