Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Cside committed Sep 19, 2023
2 parents 5130355 + 29fcfd8 commit cd829fe
Show file tree
Hide file tree
Showing 6 changed files with 483 additions and 80 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"root": true,
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": "latest",
"project": "./tsconfig.json"
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"no-trailing-spaces": "error",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-floating-promises": ["error", { "ignoreIIFE": true }]
}
}
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@

## How to Build

```
Replace `YOUR_TOKEN` with your Github access token that includes `read:packages` permission

```bash
cat << EOF > .npmrc
//npm.pkg.github.com/:_authToken=YOUR_TOKEN
@cside:registry=https://npm.pkg.github.com/
EOF

pnpm install
pnpm run build
```
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"content_scripts": [
{
"matches": ["https://search.rakuten.co.jp/search/mall/*"],
"js": ["src/content-script.js"],
"js": ["src/contentScript.ts"],
"run_at": "document_start"
}
]
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,24 @@
"package:firefox": "./scripts/package-firefox.sh",
"lint:prettier": "prettier --check .",
"lint-fix:prettier": "prettier --write .",
"lint:eslint": "eslint './src/**/*.ts'",
"lint-fix:eslint": "eslint --fix './src/**/*.ts'",
"lint:stylelint": "stylelint './src/**/*.css'",
"lint-fix:stylelint": "stylelint --fix './src/**/*.css'",
"lint": "run-p -c lint:*",
"lint-fix": "run-p -c lint-fix:*",
"check:types": "tsc --noEmit",
"check:ng-word": "./scripts/check-ng-words.sh",
"check:unused-exports": "ts-prune -e",
"check": "run-p -c lint check:*"
},
"devDependencies": {
"@crxjs/vite-plugin": "^1.0.14",
"@tsconfig/strictest": "^2.0.2",
"@types/chrome": "^0.0.246",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.2",
"stylelint": "^15.9.0",
Expand All @@ -32,7 +37,6 @@
"stylelint-csstree-validator": "^2.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
"stylelint-value-no-unknown-custom-properties": "^4.0.0",
"ts-prune": "^0.10.3",
"typescript": "^5.2.2",
"vite": "^4.4.5",
"vitest": "^0.34.2"
Expand Down
Loading

0 comments on commit cd829fe

Please sign in to comment.