-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit eb442f6
Showing
43 changed files
with
3,526 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"root": true, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"overrides": [], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"@typescript-eslint/ban-ts-comment": [ | ||
"warn", | ||
{ | ||
"ts-expect-error": "allow-with-description", | ||
"ts-ignore": "allow-with-description", | ||
"ts-nocheck": "allow-with-description", | ||
"ts-check": "allow-with-description" | ||
} | ||
], | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-explicit-any": ["off", { "ignoreRestArgs": true }], | ||
"@typescript-eslint/no-non-null-assertion": "off" | ||
}, | ||
"ignorePatterns": [ | ||
"**/build/**", | ||
"**/dist/**", | ||
"**/node_modules/**", | ||
"**/scripts/**", | ||
"**/*.js", | ||
"**/*.bak" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
**/build | ||
node_modules | ||
package-lock.json | ||
zotero-cmd.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"tabWidth": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"npm": { | ||
"publish": false | ||
}, | ||
"github": { | ||
"release": true, | ||
"assets": ["build/*.xpi"] | ||
}, | ||
"hooks": { | ||
"before:init": "npm run lint", | ||
"after:bump": "npm run build", | ||
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"macabeus.vscode-fluent" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
// 使用 IntelliSense 了解相关属性。 | ||
// 悬停以查看现有属性的描述。 | ||
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "StartDev", | ||
"runtimeExecutable": "npm", | ||
"runtimeArgs": ["run", "start-watch"] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Restart", | ||
"runtimeExecutable": "npm", | ||
"runtimeArgs": ["run", "restart"] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Restart in Prod Mode", | ||
"runtimeExecutable": "npm", | ||
"runtimeArgs": ["run", "restart-prod"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"editor.formatOnType": false, | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"appendElement - full": { | ||
"scope": "javascript,typescript", | ||
"prefix": "appendElement", | ||
"body": [ | ||
"appendElement({", | ||
"\ttag: '${1:div}',", | ||
"\tid: '${2:id}',", | ||
"\tnamespace: '${3:html}',", | ||
"\tclassList: ['${4:class}'],", | ||
"\tstyles: {${5:style}: '$6'},", | ||
"\tproperties: {},", | ||
"\tattributes: {},", | ||
"\t[{ '${7:onload}', (e: Event) => $8, ${9:false} }],", | ||
"\tcheckExistanceParent: ${10:HTMLElement},", | ||
"\tignoreIfExists: ${11:true},", | ||
"\tskipIfExists: ${12:true},", | ||
"\tremoveIfExists: ${13:true},", | ||
"\tcustomCheck: (doc: Document, options: ElementOptions) => ${14:true},", | ||
"\tchildren: [$15]", | ||
"}, ${16:container});" | ||
] | ||
}, | ||
"appendElement - minimum": { | ||
"scope": "javascript,typescript", | ||
"prefix": "appendElement", | ||
"body": "appendElement({ tag: '$1' }, $2);" | ||
}, | ||
"register Notifier": { | ||
"scope": "javascript,typescript", | ||
"prefix": "registerObserver", | ||
"body": [ | ||
"registerObserver({", | ||
"\t notify: (", | ||
"\t\tevent: _ZoteroTypes.Notifier.Event,", | ||
"\t\ttype: _ZoteroTypes.Notifier.Type,", | ||
"\t\tids: string[],", | ||
"\t\textraData: _ZoteroTypes.anyObj", | ||
"\t) => {", | ||
"\t\t$0", | ||
"\t}", | ||
"});" | ||
] | ||
} | ||
} |
Oops, something went wrong.