Skip to content

Commit 41772b4

Browse files
authored
chore: prettier format (#2995)
1 parent cc8b5a0 commit 41772b4

File tree

1,705 files changed

+25622
-25650
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,705 files changed

+25622
-25650
lines changed

.github/ISSUE_TEMPLATE/bug_report_template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ body:
2121
multiple: true
2222
description: 选择使用的 NutUI NPM 包名
2323
options:
24-
- "@nutui/nutui"
25-
- "@nutui/nutui-taro"
24+
- '@nutui/nutui'
25+
- '@nutui/nutui-taro'
2626
validations:
2727
required: true
2828

@@ -76,7 +76,7 @@ body:
7676
label: 重现步骤
7777
description: |
7878
简洁清晰的重现步骤能够帮助我们更迅速地定位问题所在。
79-
79+
8080
请使用 Markdown 语法格式化步骤中涉及的列表、代码片段等,否则它将会非常丑陋。
8181
validations:
8282
required: true

.github/ISSUE_TEMPLATE/feature_request_template.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 🚀 新功能请求 Feature Request
22
description: 对组件库或者仓库本身的建议和想法。
3-
title: "[FR]: "
4-
labels: ["Feature Request"]
3+
title: '[FR]: '
4+
labels: ['Feature Request']
55
body:
66
- type: markdown
77
attributes:
@@ -13,16 +13,16 @@ body:
1313
- 查看组件文档 [@nutui/nutui](https://nutui.jd.com/h5/vue/4x/#/zh-CN/guide/intro) [@nutui/nutui-taro](https://nutui.jd.com/taro/vue/4x/#/zh-CN/guide/intro)
1414
- 在 [Issue](https://github.com/jdf2e/nutui/issues) 列表中查找解决方案
1515
- 查看 [常见问题 QA](https://github.com/jdf2e/nutui/issues/2461)
16-
16+
1717
- type: dropdown
1818
id: npm
1919
attributes:
2020
label: NutUI 包名
2121
multiple: true
2222
description: 选择使用的 NutUI NPM 包名
2323
options:
24-
- "@nutui/nutui"
25-
- "@nutui/nutui-taro"
24+
- '@nutui/nutui'
25+
- '@nutui/nutui-taro'
2626
validations:
2727
required: true
2828

.github/renovate.json

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:base", "schedule:weekly", "group:allNonMajor"
5-
],
3+
"extends": ["config:base", "schedule:weekly", "group:allNonMajor"],
64
"rangeStrategy": "bump",
75
"labels": ["dependencies"],
8-
"ignorePaths": [
9-
"src/**",
10-
"publish/**",
11-
"packages/nutui-vscode-extension/**"
12-
],
6+
"ignorePaths": ["src/**", "publish/**", "packages/nutui-vscode-extension/**"],
137
"packageRules": [
148
{
159
"matchPackagePatterns": ["^@tarojs"],
1610
"enabled": false
1711
}
1812
],
19-
"ignoreDeps": [
20-
"eslint-config-taro",
21-
"babel-preset-taro",
22-
"node",
23-
"typescript"
24-
]
13+
"ignoreDeps": ["eslint-config-taro", "babel-preset-taro", "node", "typescript"]
2514
}

.github/workflows/issue-close.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Close Issue
22

33
on:
44
schedule:
5-
- cron: "0 2 * * 1"
5+
- cron: '0 2 * * 1'
66
workflow_dispatch: # Allow for running this manually.
77

88
jobs:

.github/workflows/publish-beta.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
with:
2222
node-version: '18'
2323
cache: 'pnpm'
24-
registry-url: "https://registry.npmjs.org"
24+
registry-url: 'https://registry.npmjs.org'
2525

2626
- name: Install dependencies
2727
run: pnpm install
28-
28+
2929
- name: Build NutUI Vue
3030
run: pnpm build
3131

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
with:
2424
node-version: '18'
2525
cache: 'pnpm'
26-
registry-url: "https://registry.npmjs.org"
26+
registry-url: 'https://registry.npmjs.org'
2727

2828
- name: Install dependencies
2929
run: pnpm install
30-
30+
3131
- name: Build NutUI Vue
3232
run: pnpm build
3333

.github/workflows/sync-pkg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Build @nutui/nutui
3030
run: pnpm build
31-
31+
3232
- name: Build @nutui/nutui-taro
3333
run: pnpm build:taro
3434

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"singleQuote": true,
3-
"semi": true,
3+
"semi": false,
44
"bracketSpacing": true,
55
"tabWidth": 2,
66
"useTabs": false,

commitlint.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ module.exports = {
1616
['upd', 'chore', 'docs', 'feat', 'fix', 'test', 'refactor', 'revert', 'style', 'release', 'perf']
1717
]
1818
}
19-
};
19+
}

packages/nutui-auto-import-resolver/README.zh-CN.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,24 @@ bun add @nutui/auto-import-resolver unplugin-vue-components -D
3232

3333
```ts
3434
// vite.config.ts
35-
import Components from 'unplugin-vue-components/vite';
36-
import NutUIResolver from '@nutui/auto-import-resolver';
35+
import Components from 'unplugin-vue-components/vite'
36+
import NutUIResolver from '@nutui/auto-import-resolver'
3737

3838
export default defineConfig({
3939
plugins: [
4040
Components({
4141
resolvers: [NutUIResolver()]
4242
})
4343
]
44-
});
44+
})
4545
```
4646

4747
### Vue CLI
4848

4949
```ts
5050
// vue.config.js
51-
import Components from 'unplugin-vue-components/webpack';
52-
const NutUIResolver = require('@nutui/auto-import-resolver');
51+
import Components from 'unplugin-vue-components/webpack'
52+
const NutUIResolver = require('@nutui/auto-import-resolver')
5353

5454
module.exports = {
5555
configureWebpack: {
@@ -59,23 +59,23 @@ module.exports = {
5959
})
6060
]
6161
}
62-
};
62+
}
6363
```
6464

6565
### Webpack
6666

6767
```ts
6868
// webpack.config.js
69-
import Components from 'unplugin-vue-components/webpack';
70-
const NutUIResolver = require('@nutui/auto-import-resolver');
69+
import Components from 'unplugin-vue-components/webpack'
70+
const NutUIResolver = require('@nutui/auto-import-resolver')
7171

7272
module.exports = {
7373
plugins: [
7474
Components({
7575
resolvers: [NutUIResolver()]
7676
})
7777
]
78-
};
78+
}
7979
```
8080

8181
## 使用 Sass
@@ -84,8 +84,8 @@ module.exports = {
8484

8585
```ts
8686
// vite.config.ts
87-
import Components from 'unplugin-vue-components/vite';
88-
import NutUIResolver from '@nutui/auto-import-resolver';
87+
import Components from 'unplugin-vue-components/vite'
88+
import NutUIResolver from '@nutui/auto-import-resolver'
8989

9090
export default defineConfig({
9191
plugins: [
@@ -101,15 +101,15 @@ export default defineConfig({
101101
}
102102
}
103103
}
104-
});
104+
})
105105
```
106106

107107
### Vue CLI
108108

109109
```ts
110110
// vue.config.js
111-
import Components from 'unplugin-vue-components/webpack';
112-
const NutUIResolver = require('@nutui/auto-import-resolver');
111+
import Components from 'unplugin-vue-components/webpack'
112+
const NutUIResolver = require('@nutui/auto-import-resolver')
113113

114114
module.exports = {
115115
configureWebpack: {
@@ -127,15 +127,15 @@ module.exports = {
127127
}
128128
}
129129
}
130-
};
130+
}
131131
```
132132

133133
### Webpack
134134

135135
```ts
136136
// webpack.config.js
137-
import Components from 'unplugin-vue-components/webpack';
138-
const NutUIResolver = require('@nutui/auto-import-resolver');
137+
import Components from 'unplugin-vue-components/webpack'
138+
const NutUIResolver = require('@nutui/auto-import-resolver')
139139

140140
module.exports = {
141141
plugins: [
@@ -161,5 +161,5 @@ module.exports = {
161161
}
162162
]
163163
}
164-
};
164+
}
165165
```

0 commit comments

Comments
 (0)