Commit Graph
27 Commits
Author SHA1 Message Date
dependabot[bot]andTony 8a0efc0ba2 chore(deps-dev): bump eslint-plugin-unicorn from 56.0.1 to 57.0.0 (#18392)
* chore(deps-dev): bump eslint-plugin-unicorn from 56.0.1 to 57.0.0

Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 56.0.1 to 57.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v56.0.1...v57.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: remove unicorn plugin

* style: fix eslint issues

* style: fix more issues

* chore: flat config unicorn

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2025-02-19 05:10:11 +08:00
Tony 4fa33716c1 docs: remove indent (#18247)
* docs: remove indent

* docs: remove more indent

* docs: remove h5 indent

* docs: remove h4 indent

* docs: remove details indent
2025-01-31 22:17:58 +08:00
ueiu 173ae71825 fix(route/xiaoheihe): 修复小黑盒 - 游戏折扣数据抓取失败 (#17520)
* fix(route/xiaoheihe): 修复小黑盒 - 游戏折扣数据抓取失败

* refactor(route/xiaoheihe): 小黑盒游戏折扣券后价格式化显示
2024-11-10 18:14:00 +08:00
pseudoyu 0a42f88de7 feat(route): add lang field in route namespace 2024-11-01 22:09:31 +07:00
tssujt 0ebe193e10 fix(route): Fix xiaoheihe news (#15638) 2024-05-20 23:24:35 +08:00
LMark 71100ca0a1 feat(route): add 小黑盒喜加一 (#15051)
* add 小黑盒喜加一

* fix time error
2024-04-03 22:56:16 +08:00
tssujt 2dd1b75f7b fix(route): Fix xiaoheihe (#14764) 2024-03-19 13:06:27 +08:00
DIYgod 6f57c02538 feat: rename routes dir - 2/2 2024-03-01 01:24:49 +08:00
Tony 6d901cb7dc style(eslint): add eslint-unicorn (#14257)
* style: add eslint-unicorn

* style: fix unicorn/no-useless-spread

* style: fix unicorn/no-useless-promise-resolve-reject

* style: fix unicorn/no-for-loop

* fix: codeql bad HTML filtering regexp

* fix: codeql incomplete replace

* fix: unicorn/no-abusive-eslint-disable

* style: fix unicorn/no-new-array

* style: fix unicorn/no-typeof-undefined

* style: fix unicorn/no-zero-fractions

* style: fix unicorn/no-empty-file

* style: fix unicorn/prefer-date-now

* revert: auto fix unicorn/prefer-switch on lib/v2/kuaidi100/utils.js

* style: fix unicorn/prefer-array-find

* style: fix unicorn/prefer-array-flat

* style: fix unicorn/prefer-array-flat-map

* style: fix unicorn/prefer-at

* style: fix unicorn/prefer-string-starts-ends-with

* style: fix unicorn/prefer-includes

* fix: codeql URL substring sanitization

* style: fix unicorn/prefer-optional-catch-binding

* style: fix unicorn/catch-error-name

* style: fix unicorn/escape-case

* style: fix unicorn/prefer-native-coercion-functions

* style: fix unicorn/prefer-regexp-test

* style: fix unicorn/require-array-join-separator

* style: fix unicorn/prefer-math-trunc

* style: fix unicorn/prefer-negative-index

* style: fix unicorn/prefer-dom-node-dataset

* style: fix unicorn/prefer-dom-node-text-content

* style: fix unicorn/prefer-query-selector

* style: fix unicorn/no-array-for-each

* style: fix unicorn/no-negated-condition

* style: fix unicorn/prefer-add-event-listener

* style: fix unicorn/import-style

* style: fix prefer-regex-literals

* style: disable unicorn/no-useless-switch-case

* style: disable unicorn/text-encoding-identifier-case

* style: fix unicorn/prefer-set-has

* style: fix unicorn/prefer-spread

* revert: auto fix on lib/routes/universities/ynnu/edu/base64.js

* style: fix unicorn/no-useless-undefined

* style: fix unicorn/no-array-push-push

* style: fix unicorn/no-useless-undefined again

* style: fix unicorn/no-lonely-if

* style: fix unicorn/prefer-reflect-apply

* style: fix unicorn/switch-case-braces

* style: fix unicorn/prefer-switch

* style: fix unicorn/prefer-array-some

* fix: deepscan UNUSED_VAR_ASSIGN

* style: fix unicorn/prefer-ternary

* fix: follow-up of unicorn/prefer-ternary

* revert: auto fix of unicorn/prefer-string-slice for substring()

* style: disable unicorn/prefer-string-slice

fix: auto fix slice over deprecated substr

* style: fix unicorn/throw-new-error

* style: fix unicorn/filename-case

* test: fix dateParser renaming

* style: fix unicorn/better-regex

* style: fix unicorn/prefer-string-replace-all

* fix(deps): add sanitize-html

* style: fix no-prototype-builtins

* style: fix unicorn/consistent-destructuring

* style: fix unicorn/consistent-function-scoping

* style: fix unicorn/prefer-regexp-test

* style: fix unicorn/prefer-logical-operator-over-ternary

* style: fix unicorn/no-array-callback-reference

* style: add prefer-object-has-own

* style: warn unicorn/no-empty-file

* style: fix unicorn/prefer-number-properties

* style: fix no-useless-undefined again

* style: fix unicorn/numeric-separators-style

* style: disable unicorn/no-array-callback-reference

false postive with cheerio
2024-01-18 20:43:40 +08:00
auto-bot-tyandSettingDust 91f48eb298 fix(route): 小黑盒 - 用户动态 (#7987)
Co-authored-by: SettingDust <settingdust@gmail.com>
2021-10-05 02:37:12 -07:00
Sukka d82847f541 style/chore(eslint): enforce new rules (#8040)
* style: prefer object shorthand syntax
* refactor: prefer Array#map over Array#forEach
* style: prefer arrow callback
* chore(eslint): update rules
* style: auto fix by eslint
2021-08-17 22:23:23 +08:00
hoilc fa5e993d1a fix(route): xiaoheihe news duplicate entries (#6992) 2021-02-22 19:01:32 -05:00
Ethan Shen 002f41f559 fix: 小黑盒游戏新闻原文链接 2021-01-07 21:31:14 +08:00
GitHub Action b9cb67cdf5 style: auto format 2020-10-13 10:37:48 +00:00
MisakaTangandcodefactor-io fdbf9a64e4 fix: 小黑盒PC游戏折扣信息 (#5870)
Co-authored-by: codefactor-io <support@codefactor.io>
2020-10-13 11:35:34 +01:00
Yorkin Yuan 71af212afa feat: 小黑盒游戏折扣改为按平台查询 (#4553) 2020-04-28 11:12:54 +08:00
black-desk a3141917b9 fix: /gov/customs/list/fagui and /xiaoheihe/discount (#4487) 2020-04-19 19:02:58 +08:00
Yorkin Yuan 97473dae5c fix: 修复小黑盒游戏新闻时间取值错误的问题 (#4472) 2020-04-19 18:49:17 +08:00
DIYgod 9a3bea3525 feat: remove referrerpolicy in routes 2019-08-28 14:38:19 +08:00
DIYgod a56c0b5a39 refactor: rename axios to got 2019-06-03 18:03:05 +08:00
aka-rin 0bb5acf6ce fix: 小黑盒热门折扣 (#2237) 2019-05-27 11:12:27 +08:00
WenryXu ee680ddf3f fix: 修正小黑盒游戏新闻全文无法显示图片 (#2189) 2019-05-22 10:51:12 +08:00
DIYgod e2badbfa98 chore: module alias for all routes 2019-05-15 15:27:15 +08:00
DIYgod a0333fbd7e feat: use contentExpire 2019-05-09 01:23:29 +08:00
Yorkin Yuan f80f1a8feb 修复小黑盒、游戏时光 BUG (#1749)
- 修复小黑盒新闻部分undefined的问题
- 修复小黑盒新闻内容取值错误的问题
- 修复游戏时光新闻内容取值错误的问题
2019-03-18 15:14:04 +08:00
Yorkin Yuan e505e463e0 ✨ 小黑盒新闻、打折情况,游戏时光新闻、发售表 (#1736) 2019-03-13 11:56:55 +08:00
Chenyang Shi f46df357ef add 小黑盒 (#1445)
close #1435
2019-01-23 11:00:01 +08:00