-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from mogeko/dev
Use `biome` instead of `prettier` to format the code
- Loading branch information
Showing
33 changed files
with
186 additions
and
133 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,12 @@ | ||
--- | ||
"better-steam-rating": patch | ||
"ghproxy-gist-raw": patch | ||
"ghproxy-releases": patch | ||
"douban2rarbg": patch | ||
"ghproxy-raw": patch | ||
"exclude-dv": patch | ||
"template": patch | ||
"down-git": patch | ||
--- | ||
|
||
Use [`biome`](https://biomejs.dev) instead of [`prettier`](https://prettier.io) to format the code. |
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
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"organizeImports": { "enabled": true }, | ||
"linter": { | ||
"rules": { "recommended": true } | ||
}, | ||
"formatter": { | ||
"indentStyle": "space" | ||
}, | ||
"files": { "ignoreUnknown": true }, | ||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"useIgnoreFile": 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
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 |
---|---|---|
|
@@ -18,15 +18,10 @@ | |
"url": "https://github.com/mogeko/userscripts/issues", | ||
"email": "[email protected]" | ||
}, | ||
"keywords": [ | ||
"userscript", | ||
"tampermonkey" | ||
], | ||
"keywords": ["userscript", "tampermonkey"], | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "vite build", | ||
"lint": "prettier --check .", | ||
"fmt": "prettier --write ." | ||
"build": "vite build" | ||
}, | ||
"devDependencies": { | ||
"@mogeko/tsconfig": "^0.0.4", | ||
|
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
console.log("Hello World"); | ||
|
||
export {}; | ||
export type {}; |
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
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 |
---|---|---|
|
@@ -18,16 +18,10 @@ | |
"url": "https://github.com/mogeko/userscripts/issues", | ||
"email": "[email protected]" | ||
}, | ||
"keywords": [ | ||
"userscript", | ||
"tampermonkey", | ||
"steam" | ||
], | ||
"keywords": ["userscript", "tampermonkey", "steam"], | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "vite build", | ||
"lint": "prettier --check .", | ||
"fmt": "prettier --write ." | ||
"build": "vite build" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^22.5.4", | ||
|
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
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
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 |
---|---|---|
|
@@ -18,19 +18,12 @@ | |
"url": "https://github.com/mogeko/userscripts/issues", | ||
"email": "[email protected]" | ||
}, | ||
"keywords": [ | ||
"userscript", | ||
"tampermonkey", | ||
"douban", | ||
"rarbg" | ||
], | ||
"keywords": ["userscript", "tampermonkey", "douban", "rarbg"], | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "vite build", | ||
"test": "vitest run", | ||
"cov": "vitest run --coverage", | ||
"lint": "prettier --check .", | ||
"fmt": "prettier --write ." | ||
"cov": "vitest run --coverage" | ||
}, | ||
"devDependencies": { | ||
"@mogeko/tsconfig": "^0.0.4", | ||
|
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
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
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
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 |
---|---|---|
|
@@ -18,16 +18,10 @@ | |
"url": "https://github.com/mogeko/userscripts/issues", | ||
"email": "[email protected]" | ||
}, | ||
"keywords": [ | ||
"userscript", | ||
"tampermonkey", | ||
"github" | ||
], | ||
"keywords": ["userscript", "tampermonkey", "github"], | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "vite build", | ||
"lint": "prettier --check .", | ||
"fmt": "prettier --write ." | ||
"build": "vite build" | ||
}, | ||
"devDependencies": { | ||
"@mogeko/tsconfig": "^0.0.4", | ||
|
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
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
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 |
---|---|---|
|
@@ -18,16 +18,10 @@ | |
"url": "https://github.com/mogeko/userscripts/issues", | ||
"email": "[email protected]" | ||
}, | ||
"keywords": [ | ||
"userscript", | ||
"tampermonkey", | ||
"rarbg" | ||
], | ||
"keywords": ["userscript", "tampermonkey", "rarbg"], | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "vite build", | ||
"lint": "prettier --check .", | ||
"fmt": "prettier --write ." | ||
"build": "vite build" | ||
}, | ||
"devDependencies": { | ||
"@mogeko/tsconfig": "^0.0.4", | ||
|
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
const DV_TRAIT = /(\w+[\.\-\ \[\]])+DV[\.\-\ \[\]](\w+[\.\-\ \[\]]?)+/; | ||
|
||
document.querySelectorAll("table.lista2t tr.lista2").forEach((tr) => { | ||
for (const tr of document.querySelectorAll("table.lista2t tr.lista2")) { | ||
const link = tr.querySelector<HTMLAnchorElement>("td:nth-child(2) > a"); | ||
|
||
if (DV_TRAIT.test(link?.innerHTML || "")) { | ||
console.log("[Exclude DV] Remove: ", link?.title); | ||
tr.remove(); | ||
} | ||
}); | ||
} | ||
|
||
export {}; | ||
export type {}; |
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
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 |
---|---|---|
|
@@ -18,17 +18,10 @@ | |
"url": "https://github.com/mogeko/userscripts/issues", | ||
"email": "[email protected]" | ||
}, | ||
"keywords": [ | ||
"userscript", | ||
"tampermonkey", | ||
"github", | ||
"gist" | ||
], | ||
"keywords": ["userscript", "tampermonkey", "github", "gist"], | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "vite build", | ||
"lint": "prettier --check .", | ||
"fmt": "prettier --write ." | ||
"build": "vite build" | ||
}, | ||
"devDependencies": { | ||
"@mogeko/tsconfig": "^0.0.4", | ||
|
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
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
Oops, something went wrong.