Skip to content

Commit ac3441d

Browse files
committed
release: 0.40.28
1 parent b2467a3 commit ac3441d

File tree

20 files changed

+2434
-3637
lines changed

20 files changed

+2434
-3637
lines changed

.eslintignore

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

.eslintrc

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

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,22 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Use Node.js
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: "22.x"
1919

20+
- name: Setup pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: latest
24+
2025
- name: Build plugin
2126
run: |
22-
npm install
23-
npm run build
27+
pnpm install
28+
pnpm build
2429
2530
- name: Create release
2631
env:

eslint.config.mjs

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import globals from "globals";
3+
import tsParser from "@typescript-eslint/parser";
4+
import path from "node:path";
5+
import { fileURLToPath } from "node:url";
6+
import js from "@eslint/js";
7+
import { FlatCompat } from "@eslint/eslintrc";
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all
15+
});
16+
17+
export default [{
18+
ignores: ["**/node_modules/", "**/main.js"],
19+
}, ...compat.extends(
20+
"eslint:recommended",
21+
"plugin:@typescript-eslint/eslint-recommended",
22+
"plugin:@typescript-eslint/recommended",
23+
), {
24+
plugins: {
25+
"@typescript-eslint": typescriptEslint,
26+
},
27+
28+
languageOptions: {
29+
globals: {
30+
...globals.node,
31+
},
32+
33+
parser: tsParser,
34+
ecmaVersion: 5,
35+
sourceType: "module",
36+
},
37+
38+
rules: {
39+
"no-unused-vars": "off",
40+
"no-cond-assign": "off",
41+
42+
"no-constant-condition": ["error", {
43+
checkLoops: false,
44+
}],
45+
46+
"@typescript-eslint/no-unused-vars": ["error", {
47+
args: "none",
48+
}],
49+
50+
"@typescript-eslint/ban-ts-comment": "off",
51+
"no-prototype-builtins": "off",
52+
"@typescript-eslint/no-empty-function": "off",
53+
"@typescript-eslint/no-this-alias": "off",
54+
55+
"@typescript-eslint/no-inferrable-types": ["error", {
56+
ignoreParameters: true,
57+
ignoreProperties: true,
58+
}],
59+
60+
semi: ["error", "always"],
61+
62+
"semi-spacing": ["error", {
63+
after: true,
64+
before: false,
65+
}],
66+
67+
"semi-style": ["error", "last"],
68+
"no-extra-semi": "error",
69+
"no-unexpected-multiline": "error",
70+
"no-unreachable": "error",
71+
"@typescript-eslint/no-explicit-any": "off",
72+
"@typescript-eslint/no-unused-expressions": "off",
73+
},
74+
}];

manifest-beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "pdf-plus",
33
"name": "PDF++",
4-
"version": "0.40.27",
4+
"version": "0.40.28",
55
"minAppVersion": "1.5.8",
66
"description": "The most Obsidian-native PDF annotation tool ever.",
77
"author": "Ryota Ushio",

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "pdf-plus",
33
"name": "PDF++",
4-
"version": "0.40.27",
4+
"version": "0.40.28",
55
"minAppVersion": "1.5.8",
66
"description": "The most Obsidian-native PDF annotation tool ever.",
77
"author": "Ryota Ushio",

0 commit comments

Comments
 (0)