Skip to content

Commit d45e3c3

Browse files
committed
chore(deps): bump dependencies
1 parent 054aa08 commit d45e3c3

9 files changed

Lines changed: 1936 additions & 2386 deletions

File tree

.editorconfig

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,37 @@
11
root = true
22

3-
[*]
4-
charset = utf-8
3+
[*.toml]
4+
indent_size = 4
5+
indent_style = space
6+
max_line_length = 100
7+
trim_trailing_whitespace = true
8+
9+
[*.rs]
10+
indent_size = 2
11+
indent_style = space
12+
max_line_length = 100
13+
trim_trailing_whitespace = true
14+
15+
[*.md]
16+
# double whitespace at end of line
17+
# denotes a line break in Markdown
18+
trim_trailing_whitespace = false
19+
20+
[*.{js,ts,vue,tsx,jsx,html,css,json,yaml,yml}]
21+
indent_size = 2
522
indent_style = space
23+
trim_trailing_whitespace = true
24+
25+
[*.go]
26+
indent_size = 4
27+
indent_style = tab
28+
trim_trailing_whitespace = true
29+
30+
[*.proto]
631
indent_size = 2
32+
indent_style = space
33+
34+
[*]
35+
charset = utf-8
736
end_of_line = lf
837
insert_final_newline = true
9-
trim_trailing_whitespace = true

.github/workflows/ci.yaml

Lines changed: 18 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,14 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323

24-
- name: Install Node.js 22.x
25-
uses: actions/setup-node@v3
24+
- uses: pnpm/action-setup@v4
25+
- uses: actions/setup-node@v5
2626
with:
27-
node-version: 22.x
27+
node-version: 'lts/*'
28+
cache: pnpm
2829

29-
- name: Install pnpm
30-
uses: pnpm/action-setup@v4
31-
with:
32-
run_install: false
33-
34-
- name: Obtain pnpm store directory
35-
shell: bash
36-
run: |
37-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
38-
39-
- name: Obtain pnpm store cache
40-
uses: actions/cache@v4
41-
with:
42-
path: ${{ env.STORE_PATH }}
43-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
44-
restore-keys: |
45-
${{ runner.os }}-pnpm-store-
46-
47-
- name: Install dependencies
48-
run: pnpm install --frozen-lockfile
49-
50-
- name: Lint
51-
run: pnpm run lint
30+
- run: pnpm install --frozen-lockfile
31+
- run: pnpm run lint
5232

5333
typecheck:
5434
name: Type Check
@@ -59,34 +39,14 @@ jobs:
5939
- name: Checkout
6040
uses: actions/checkout@v4
6141

62-
- name: Install Node.js 22.x
63-
uses: actions/setup-node@v3
64-
with:
65-
node-version: 22.x
66-
67-
- name: Install pnpm
68-
uses: pnpm/action-setup@v4
42+
- uses: pnpm/action-setup@v4
43+
- uses: actions/setup-node@v5
6944
with:
70-
run_install: false
45+
node-version: 'lts/*'
46+
cache: pnpm
7147

72-
- name: Obtain pnpm store directory
73-
shell: bash
74-
run: |
75-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
76-
77-
- name: Obtain pnpm store cache
78-
uses: actions/cache@v4
79-
with:
80-
path: ${{ env.STORE_PATH }}
81-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
82-
restore-keys: |
83-
${{ runner.os }}-pnpm-store-
84-
85-
- name: Install dependencies
86-
run: pnpm install --frozen-lockfile
87-
88-
- name: Type Check
89-
run: pnpm run typecheck
48+
- run: pnpm install --frozen-lockfile
49+
- run: pnpm run typecheck
9050

9151
build-test:
9252
name: Build Test
@@ -97,31 +57,10 @@ jobs:
9757
- name: Checkout
9858
uses: actions/checkout@v4
9959

100-
- name: Install Node.js 22.x
101-
uses: actions/setup-node@v4
60+
- uses: pnpm/action-setup@v4
61+
- uses: actions/setup-node@v5
10262
with:
103-
node-version: 22.x
104-
105-
- name: Install pnpm
106-
uses: pnpm/action-setup@v4
107-
with:
108-
run_install: false
109-
110-
- name: Obtain pnpm store directory
111-
shell: bash
112-
run: |
113-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
114-
115-
- name: Obtain pnpm store cache
116-
uses: actions/cache@v4
117-
with:
118-
path: ${{ env.STORE_PATH }}
119-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
120-
restore-keys: |
121-
${{ runner.os }}-pnpm-store-
122-
123-
- name: Install dependencies
124-
run: pnpm install --frozen-lockfile
125-
126-
- name: Build Test
127-
run: pnpm run build
63+
node-version: 'lts/*'
64+
cache: pnpm
65+
- run: pnpm install --frozen-lockfile
66+
- run: pnpm run build

.github/workflows/release.yaml

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,14 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v4
2020

21-
- name: Install Node.js 22.x
22-
uses: actions/setup-node@v4
21+
- uses: pnpm/action-setup@v4
22+
- uses: actions/setup-node@v5
2323
with:
24-
node-version: 22.x
24+
node-version: 'lts/*'
25+
cache: pnpm
2526

26-
- name: Install pnpm
27-
uses: pnpm/action-setup@v4
28-
with:
29-
run_install: false
30-
31-
- name: Obtain pnpm store directory
32-
shell: bash
33-
run: |
34-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
35-
36-
- name: Obtain pnpm store cache
37-
uses: actions/cache@v4
38-
with:
39-
path: ${{ env.STORE_PATH }}
40-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
41-
restore-keys: |
42-
${{ runner.os }}-pnpm-store-
43-
44-
- name: Install dependencies
45-
run: pnpm install --frozen-lockfile
46-
47-
- name: Build
48-
run: pnpm run build
27+
- run: pnpm install --frozen-lockfile
28+
- run: pnpm run build
4929

5030
- name: Get release version
5131
id: version

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ ni
131131
6. Build the plugin for development
132132

133133
```shell
134-
pnpm run build:dev
134+
pnpm run build
135135
```
136136

137137
If you use [`@antfu/ni`](https://github.com/antfu/ni), you can also use the following command:

eslint.config.mjs

Lines changed: 0 additions & 10 deletions
This file was deleted.

eslint.config.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default await antfu(
4+
{
5+
unocss: true,
6+
ignores: [
7+
'cspell.config.yaml',
8+
'cspell.config.yml',
9+
'crowdin.yaml',
10+
'crowdin.yml',
11+
'**/drizzle/**',
12+
'**/.astro/**',
13+
],
14+
rules: {
15+
'vue/prefer-separate-static-class': 'off',
16+
'yaml/plain-scalar': 'off',
17+
'import/order': 'off',
18+
'antfu/import-dedupe': 'error',
19+
'style/padding-line-between-statements': 'error',
20+
'perfectionist/sort-imports': [
21+
'error',
22+
{
23+
groups: [
24+
'type-builtin',
25+
'type-import',
26+
'type-internal',
27+
['type-parent', 'type-sibling', 'type-index'],
28+
'default-value-builtin',
29+
'named-value-builtin',
30+
'value-builtin',
31+
'default-value-external',
32+
'named-value-external',
33+
'value-external',
34+
'default-value-internal',
35+
'named-value-internal',
36+
'value-internal',
37+
['default-value-parent', 'default-value-sibling', 'default-value-index'],
38+
['named-value-parent', 'named-value-sibling', 'named-value-index'],
39+
['wildcard-value-parent', 'wildcard-value-sibling', 'wildcard-value-index'],
40+
['value-parent', 'value-sibling', 'value-index'],
41+
'side-effect',
42+
'style',
43+
],
44+
newlinesBetween: 'always',
45+
},
46+
],
47+
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
48+
},
49+
},
50+
)

package.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "obsidian-plugin-template",
33
"type": "module",
44
"version": "0.1.0",
5-
"packageManager": "pnpm@9.14.2",
5+
"packageManager": "pnpm@10.18.1",
66
"description": "Obsidian Template Plugin",
77
"author": {
88
"name": "Nólëbase",
@@ -24,16 +24,19 @@
2424
"build": "unbuild",
2525
"lint": "eslint --cache .",
2626
"lint:fix": "eslint --cache --fix .",
27-
"typecheck": "tsc --noEmit"
27+
"typecheck": "tsc --noEmit",
28+
"up": "taze -w -r -I -f && pnpm prune && pnpm dedupe",
29+
"nolyfill": "pnpm dlx nolyfill"
2830
},
2931
"devDependencies": {
30-
"@antfu/eslint-config": "^3.9.2",
31-
"@codemirror/view": "^6.35.0",
32-
"@types/node": "^22.9.3",
33-
"builtin-modules": "^3.3.0",
34-
"eslint": "^9.15.0",
35-
"obsidian": "^1.7.2",
36-
"typescript": "^5.7.2",
37-
"unbuild": "^2.0.0"
32+
"@antfu/eslint-config": "^5.4.1",
33+
"@codemirror/view": "^6.38.5",
34+
"@types/node": "^24.7.0",
35+
"builtin-modules": "^5.0.0",
36+
"eslint": "^9.37.0",
37+
"obsidian": "^1.10.0",
38+
"taze": "^19.7.0",
39+
"typescript": "^5.9.3",
40+
"unbuild": "^3.6.1"
3841
}
3942
}

0 commit comments

Comments
 (0)