Skip to content

Commit a9a157f

Browse files
committed
init
1 parent 258dba4 commit a9a157f

File tree

8 files changed

+95
-0
lines changed

8 files changed

+95
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# tinyShield

eslint.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import tsPlugin from "@typescript-eslint/eslint-plugin"
2+
import tsParser from "@typescript-eslint/parser"
3+
4+
const config = [
5+
{
6+
files: ["**/*.ts", "**/*.tsx"], // Target TypeScript files
7+
languageOptions: {
8+
parser: tsParser,
9+
sourceType: "module",
10+
},
11+
plugins: {
12+
"@typescript-eslint": tsPlugin,
13+
},
14+
rules: {
15+
...tsPlugin.configs.recommended.rules,
16+
"semi": ["error", "never"],
17+
"quotes": ["error", "single"],
18+
"@typescript-eslint/no-unused-vars": "warn",
19+
'@typescript-eslint/naming-convention': ['error', {
20+
selector: ['variableLike', 'parameterProperty', 'classProperty', 'typeProperty'],
21+
format: ['PascalCase']
22+
}]
23+
}
24+
}
25+
]
26+
27+
export default config

package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "@list-kr/tinyshield",
3+
"version": "1.0.0",
4+
"description": "",
5+
"type": "module",
6+
"scripts": {
7+
"build": "esbuild sources/src/index.ts --bundle --minify-whitespace --minify-syntax --define:global=window --inject:./sources/esbuild.inject.ts --banner:js=\"$(cat ./sources/banner.txt)\" --target=es2022,chrome109,safari16,firefox115 --outfile=./dist/tinyShield.user.js",
8+
"debug": "esbuild sources/src/index.ts --bundle --define:global=window --inject:./sources/esbuild.inject.ts --banner:js=\"$(cat ./sources/banner.txt)\" --target=es2022,chrome109,safari16,firefox115 --outfile=./dist/tinyShield-debug.user.js",
9+
"lint": "tsc && eslint sources --ext .ts"
10+
},
11+
"keywords": [],
12+
"files": [
13+
"dist"
14+
],
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/List-KR/tinyShield"
18+
},
19+
"license": "MIT",
20+
"dependencies": {
21+
"@types/node": "^20.17.1"
22+
},
23+
"devDependencies": {
24+
"esbuild": "^0.24.0",
25+
"eslint": "^9.13.0",
26+
"pnpm": "^9.12.3",
27+
"typescript": "^5.6.3",
28+
"typescript-eslint": "^8.11.0"
29+
}
30+
}

sources/banner.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// ==UserScript==
2+
// @name tinyShield
3+
// @encoding utf-8
4+
// @namespace https://github.com/List-KR/tinyShield
5+
// @homepageURL https://github.com/List-KR/tinyShield
6+
// @supportURL https://github.com/List-KR/tinyShield/issues
7+
// @updateURL https://cdn.jsdelivr.net/npm/@list-kr/tinyshield@latest/dist/tinyShield.user.js
8+
// @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/tinyshield@latest/dist/tinyShield.user.js
9+
// @license MIT
10+
//
11+
// @version 1.0.0
12+
// @author PiQuark6046 and contributors
13+
//
14+
// @match https://dogdrip.net/*
15+
// @match https://*.dogdrip.net/*
16+
// @match https://mlbpark.donga.com/*
17+
// @match https://inven.co.kr/*
18+
// @match https://*.inven.co.kr/*
19+
//
20+
// @description tinyShield is
21+
// @description:ko
22+
//
23+
// @grant unsafeWindow
24+
// @run-at document-start
25+
// ==/UserScript==

sources/esbuild.inject.ts

Whitespace-only changes.

sources/src/index.ts

Whitespace-only changes.

tsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"module": "NodeNext",
4+
"target": "ES2022",
5+
"moduleResolution": "NodeNext",
6+
"removeComments": false,
7+
"alwaysStrict": false,
8+
"skipLibCheck": true
9+
}
10+
}

0 commit comments

Comments
 (0)