Skip to content

IDE/eslint doesn't report un-imported $ as undefined any more #32982

Closed
@wxiaoguang

Description

@wxiaoguang

Maybe caused by a related dependency change by Update JS and PY dependencies (#32482) and/or some recent upgrades.

It seems that the eslint dependency is also broken.

cc @silverwind

# comment out the first `import $ from 'jquery';` line
#
# the commit before #32482
$ git checkout cad313e64f01146b34b66ed6aa1344d9002dfe6c
$ npm i && npx eslint web_src/js/features/repo-issue-content.ts 
/Users/xiaoguang/work/gitea/web_src/js/features/repo-issue-content.ts
   14:17  error  '$' is not defined  no-undef

$ git checkout main
$ npm i && npx eslint web_src/js/features/repo-issue-content.ts
(no eslint error)
(but there are other npm warnings)

Before:

image

After:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions