Skip to content

Commit 39f597c

Browse files
committed
fix(lazy-table-renderer): fix lint
1 parent f5821f7 commit 39f597c

File tree

6 files changed

+102
-54
lines changed

6 files changed

+102
-54
lines changed

.github/workflows/release-lazy-table-renderer

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,29 @@ jobs:
2121
uses: actions/checkout@v3
2222
with:
2323
fetch-depth: 0
24-
24+
2525
- name: Setup Node.js
2626
uses: actions/setup-node@v3
2727
with:
2828
node-version: '20.8.1'
2929
registry-url: 'https://registry.npmjs.org/'
30-
30+
3131
- name: Setup pnpm
3232
uses: pnpm/action-setup@v2
3333
with:
3434
version: latest
35-
35+
3636
- name: Install dependencies
3737
run: pnpm install
38-
38+
3939
- name: Build
4040
run: pnpm -F @seungwoo321/lazy-table-renderer build
41-
41+
4242
- name: Release
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4646
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4747
run: |
4848
cd packages/lazy-table-renderer
49-
pnpm dlx semantic-release
49+
pnpm dlx semantic-release

packages/lazy-table-renderer/.releaserc.json

Lines changed: 93 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,98 @@
22
"branches": ["main"],
33
"tagFormat": "@vue-pivottable/lazy-table-renderer@${version}",
44
"plugins": [
5-
["@semantic-release/commit-analyzer", {
6-
"preset": "angular",
7-
"parserOpts": {
8-
"headerPattern": "^(\\w*)\\(([\\w\\-]+)\\):\\s(.*)$",
9-
"headerCorrespondence": ["type", "scope", "subject"]
10-
},
11-
"releaseRules": [
12-
{"type": "feat", "scope": "lazy-table-renderer", "release": "minor"},
13-
{"type": "fix", "scope": "lazy-table-renderer", "release": "patch"},
14-
{"type": "docs", "scope": "lazy-table-renderer", "release": "patch"},
15-
{"type": "style", "scope": "lazy-table-renderer", "release": "patch"},
16-
{"type": "refactor", "scope": "lazy-table-renderer", "release": "patch"},
17-
{"type": "perf", "scope": "lazy-table-renderer", "release": "patch"},
18-
{"type": "test", "scope": "lazy-table-renderer", "release": "patch"},
19-
{"type": "build", "scope": "lazy-table-renderer", "release": "patch"},
20-
{"type": "ci", "scope": "lazy-table-renderer", "release": "patch"},
21-
{"type": "chore", "scope": "lazy-table-renderer", "release": "patch"}
22-
]
23-
}],
24-
["@semantic-release/release-notes-generator", {
25-
"preset": "angular",
26-
"parserOpts": {
27-
"headerPattern": "^(\\w*)\\(([\\w\\-]+)\\):\\s(.*)$",
28-
"headerCorrespondence": ["type", "scope", "subject"]
29-
},
30-
"writerOpts": {
31-
"commitsSort": ["scope", "subject"]
5+
[
6+
"@semantic-release/commit-analyzer",
7+
{
8+
"preset": "angular",
9+
"parserOpts": {
10+
"headerPattern": "^(\\w*)\\(([\\w\\-]+)\\):\\s(.*)$",
11+
"headerCorrespondence": ["type", "scope", "subject"]
12+
},
13+
"releaseRules": [
14+
{
15+
"type": "feat",
16+
"scope": "lazy-table-renderer",
17+
"release": "minor"
18+
},
19+
{ "type": "fix", "scope": "lazy-table-renderer", "release": "patch" },
20+
{
21+
"type": "docs",
22+
"scope": "lazy-table-renderer",
23+
"release": "patch"
24+
},
25+
{
26+
"type": "style",
27+
"scope": "lazy-table-renderer",
28+
"release": "patch"
29+
},
30+
{
31+
"type": "refactor",
32+
"scope": "lazy-table-renderer",
33+
"release": "patch"
34+
},
35+
{
36+
"type": "perf",
37+
"scope": "lazy-table-renderer",
38+
"release": "patch"
39+
},
40+
{
41+
"type": "test",
42+
"scope": "lazy-table-renderer",
43+
"release": "patch"
44+
},
45+
{
46+
"type": "build",
47+
"scope": "lazy-table-renderer",
48+
"release": "patch"
49+
},
50+
{ "type": "ci", "scope": "lazy-table-renderer", "release": "patch" },
51+
{
52+
"type": "chore",
53+
"scope": "lazy-table-renderer",
54+
"release": "patch"
55+
}
56+
]
3257
}
33-
}],
34-
["@semantic-release/changelog", {
35-
"changelogFile": "CHANGELOG.md"
36-
}],
37-
["@semantic-release/npm", {
38-
"pkgRoot": "."
39-
}],
40-
["@semantic-release/git", {
41-
"assets": ["package.json", "CHANGELOG.md"],
42-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
43-
}],
44-
["@semantic-release/github", {
45-
"successComment": "🎉 이 PR은 [${nextRelease.version}](https://github.com/vue-pivottable/vue3-pivottable/releases/tag/@vue-pivottable/lazy-table-renderer@${nextRelease.version})에 포함되었습니다.",
46-
"failTitle": "semantic-release 실패"
47-
}]
58+
],
59+
[
60+
"@semantic-release/release-notes-generator",
61+
{
62+
"preset": "angular",
63+
"parserOpts": {
64+
"headerPattern": "^(\\w*)\\(([\\w\\-]+)\\):\\s(.*)$",
65+
"headerCorrespondence": ["type", "scope", "subject"]
66+
},
67+
"writerOpts": {
68+
"commitsSort": ["scope", "subject"]
69+
}
70+
}
71+
],
72+
[
73+
"@semantic-release/changelog",
74+
{
75+
"changelogFile": "CHANGELOG.md"
76+
}
77+
],
78+
[
79+
"@semantic-release/npm",
80+
{
81+
"pkgRoot": "."
82+
}
83+
],
84+
[
85+
"@semantic-release/git",
86+
{
87+
"assets": ["package.json", "CHANGELOG.md"],
88+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
89+
}
90+
],
91+
[
92+
"@semantic-release/github",
93+
{
94+
"successComment": "🎉 이 PR은 [${nextRelease.version}](https://github.com/vue-pivottable/vue3-pivottable/releases/tag/@vue-pivottable/lazy-table-renderer@${nextRelease.version})에 포함되었습니다.",
95+
"failTitle": "semantic-release 실패"
96+
}
97+
]
4898
]
49-
}
99+
}

packages/lazy-table-renderer/CHANGELOG.md

Whitespace-only changes.

packages/lazy-table-renderer/src/LazyPivottableBody.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@
9494
:style="`height: ${bottomPaddingHeight}px; position:relative`"
9595
>
9696
<slot name="lazy-loader">
97-
<div style="position: absolute; top: 0; left: 0">
98-
Loading...
99-
</div>
97+
<div style="position: absolute; top: 0; left: 0">Loading...</div>
10098
</slot>
10199
</td>
102100
</tr>

packages/lazy-table-renderer/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default markRaw({
66
'Lazy Table': defineComponent({
77
name: 'VueLazyTable',
88
props: { ...PivotUtilities.defaultProps },
9-
setup (props) {
9+
setup(props) {
1010
return () =>
1111
h(LazyPivottableRenderer, {
1212
...props,

packages/lazy-table-renderer/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineConfig(({ command, mode, ssrBuild }) => {
2727
output: {
2828
exports: 'named',
2929
globals: {
30-
vue: 'Vue',
30+
'vue': 'Vue',
3131
'vue-pivottable': 'VuePivottable'
3232
}
3333
}

0 commit comments

Comments
 (0)