Commit Graph

21 Commits

Author SHA1 Message Date
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
DIYgod 8a58d74922
docs: documentation prioritizes English and maintains only one route list (#13075) 2023-08-20 15:57:05 +01:00
DIYgod 1178cac2eb
feat: add launch log 2021-02-26 16:51:02 +08:00
DIYgod 4445443946
feat: use dynamical config 2019-09-18 17:45:21 +08:00
DIYgod 5c764f93f3
feat: support package 2019-09-16 18:19:15 +08:00
DIYgod f7e8682ba8
feat: add error routes and error paths info 2019-08-23 00:15:13 +08:00
DIYgod 6f3a7836f2
feat: request wrapper 2019-08-06 13:00:22 +08:00
DIYgod 08878e1d52
fix: set proxy for http module, close #2647 #2094 2019-08-03 20:38:37 +08:00
DIYgod ccfcb0bbe3
feat: disable cluster by default 2019-06-26 00:01:25 +08:00
Henry Wang f73690682e fix: better debugging experience with cluster (#2447) 2019-06-20 11:50:28 +08:00
DIYgod 7c2f4777af
feat: debug info for hot route and path 2019-06-19 18:39:40 +08:00
DIYgod d0b8987f4a
feat: use cluster 2019-06-19 17:34:06 +08:00
DIYgod 449cd6bf37
test: socket 2019-06-14 18:04:55 +08:00
DIYgod 7c5aaa3c14
test: redis with quit and error cases 2019-06-13 15:23:28 +08:00
howel52 a2470f53fe chore: 添加 resolve alias (#2131)
* chore: add resolve alias "@" to "./lib"

* chore: fix jest moduleNameMapper

* fix: 修复 yarn.lock 文件
2019-05-15 15:10:53 +08:00
DIYgod e0f39bd6f3
feat(core): support .env file to config environment variables 2019-05-06 00:21:07 +08:00
DIYgod ab2028ffa2
lib: merge lur-cache and redis-cache module 2019-01-31 17:19:36 +08:00
DIYgod 36eae92311
test: blacklist in middleware/access-control 2019-01-24 16:02:47 +08:00
DIYgod c1a5b0c48a
app: remove config.connect.disabled 2019-01-24 11:32:10 +08:00
DIYgod 21877b1f28
unit test 2018-12-30 14:38:11 +08:00
DIYgod 38a90e29b0
optimize directory structure 2018-12-26 18:35:10 +08:00