Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46942ed

Browse files
committed
feat: 更新依赖版本
1 parent 2cfbeb6 commit 46942ed

File tree

9 files changed

+3461
-10133
lines changed

9 files changed

+3461
-10133
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515
rules: {
1616
// Customize your rules
1717
'no-undef': 'off',
18+
'prefer-arrow-callback': 'off',
1819
'@typescript-eslint/no-invalid-this': 'off',
1920
'@typescript-eslint/no-require-imports': 'off',
2021
'@typescript-eslint/method-signature-style': 'off',

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
- name: Setup deno
1717
uses: denolib/setup-deno@v2
1818
with:
19-
deno-version: v1.11.5
19+
deno-version: v1.34.1
2020

2121
- name: Build gh-pages
2222
run: |
2323
curl -fsSL https://deno.land/x/install/install.sh | sh
2424
export DENO_INSTALL="/home/runner/.deno"
2525
export PATH="$DENO_INSTALL/bin:$PATH"
2626
deno --version
27-
deno install --unstable --allow-read --allow-write --allow-net --allow-run -n pagic https://deno.land/x/pagic@v1.4.0/mod.ts
27+
deno install --unstable --allow-read --allow-write --allow-net --allow-run -n pagic https://deno.land/x/pagic@v1.6.3/mod.ts
2828
pagic build
2929
3030
- name: Deploy gh-pages

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ assets
1212
.gitignore
1313
.lintmdrc
1414
.prettierignore
15+
.npmrc
1516

16-
package-lock.json
17+
pnpm-lock.yaml
1718

1819
examples
1920
dist

.prettierrc.js

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,44 @@
11
// .prettierrc.js
22
module.exports = {
3-
// max 120 characters per line
3+
// 一行最多 120 字符
44
printWidth: 120,
5-
// use 2 spaces for indentation
5+
// 使用 2 个空格缩进
66
tabWidth: 2,
7-
// use spaces instead of indentations
7+
// 不使用缩进符,而使用空格
88
useTabs: false,
9-
// semicolon at the end of the line
9+
// 行尾需要有分号
1010
semi: true,
11-
// use single quotes
11+
// 使用单引号
1212
singleQuote: true,
13-
// object's key is quoted only when necessary
13+
// 对象的 key 仅在必要时用引号
1414
quoteProps: 'as-needed',
15-
// use double quotes instead of single quotes in jsx
15+
// jsx 不使用单引号,而使用双引号
1616
jsxSingleQuote: false,
17-
// no comma at the end
17+
// 末尾需要有逗号
1818
trailingComma: 'all',
19-
// spaces are required at the beginning and end of the braces
19+
// 大括号内的首尾需要空格
2020
bracketSpacing: true,
21-
// end tag of jsx need to wrap
22-
jsxBracketSameLine: false,
23-
// brackets are required for arrow function parameter, even when there is only one parameter
21+
// jsx 标签的反尖括号需要换行
22+
bracketSameLine: false,
23+
// 箭头函数,只有一个参数的时候,也需要括号
2424
arrowParens: 'always',
25-
// format the entire contents of the file
25+
// 每个文件格式化的范围是文件的全部内容
2626
rangeStart: 0,
2727
rangeEnd: Infinity,
28-
// no need to write the beginning @prettier of the file
28+
// 不需要写文件开头的 @prettier
2929
requirePragma: false,
30-
// No need to automatically insert @prettier at the beginning of the file
30+
// 不需要自动在文件开头插入 @prettier
3131
insertPragma: false,
32-
// use default break criteria
32+
// 使用默认的折行标准
3333
proseWrap: 'preserve',
34-
// decide whether to break the html according to the display style
34+
// 根据显示样式决定 html 要不要折行
3535
htmlWhitespaceSensitivity: 'css',
36-
// lf for newline
36+
// vue 文件中的 script 和 style 内不用缩进
37+
vueIndentScriptAndStyle: false,
38+
// 换行符使用 lf
3739
endOfLine: 'lf',
40+
// 格式化嵌入的内容
41+
embeddedLanguageFormatting: 'auto',
42+
// html, vue, jsx 中每个属性占一行
43+
singleAttributePerLine: false,
3844
};

0 commit comments

Comments
 (0)