Skip to content

Commit

Permalink
Merge branch 'zotero-plugin-template'
Browse files Browse the repository at this point in the history
  • Loading branch information
wohenbushuang committed Nov 11, 2024
2 parents 76a8b7a + bb1d291 commit 6e4bd45
Show file tree
Hide file tree
Showing 13 changed files with 1,995 additions and 2,657 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ ZOTERO_PLUGIN_DATA_DIR =
# ZOTERO_PLUGIN_KILL_COMMAND =

# GitHub Token
# For release-it auto create release and upload assets
# For scaffold auto create release and upload assets.
# Fill in this variable if you are publishing locally instead of CI.
# GITHUB_TOKEN =
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ jobs:
- name: Release to GitHub
run: |
npm run release
# cp build/update.json update.json
# cp build/update-beta.json update-beta.json
# git add update.json
# git add update-beta.json
# git commit -m 'chore(publish): synchronizing `update.json`'
# git push
sleep 1s
- name: Notify release
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ logs
node_modules
pnpm-lock.yaml
yarn.lock
zotero-cmd.json
.DS_Store
.env
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ node_modules
package-lock.json
yarn.lock
pnpm-lock.yaml
# zotero-cmd.json
14 changes: 14 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ export default tseslint.config(
{
extends: [eslint.configs.recommended, ...tseslint.configs.recommended],
rules: {
"no-restricted-globals": [
"error",
{ message: "Use `Zotero.getMainWindow()` instead.", name: "window" },
{
message: "Use `Zotero.getMainWindow().document` instead.",
name: "document",
},
{
message: "Use `Zotero.getActiveZoteroPane()` instead.",
name: "ZoteroPane",
},
"Zotero_Tabs",
],

"@typescript-eslint/ban-ts-comment": [
"warn",
{
Expand Down
Loading

0 comments on commit 6e4bd45

Please sign in to comment.