summaryrefslogtreecommitdiff
path: root/tests/specs/lint/jsx/react-jsx.out
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-09-27 16:14:17 +0200
committerGitHub <noreply@github.com>2024-09-27 14:14:17 +0000
commit6f0fbceaf213f523bc68d23ea28fd457499f3a75 (patch)
tree5080be4cf51993198dc3ad54b20889f25a7b93d0 /tests/specs/lint/jsx/react-jsx.out
parent3134abefa462ead8bb8e2e4aa8a5b57910f3d430 (diff)
fix(lint): correctly handle old jsx in linter (#25902)
Previously the CLI was incorrectly reporting `React` as unused in a JSX file that uses the "old" transform. The LSP was already handling this correctly.
Diffstat (limited to 'tests/specs/lint/jsx/react-jsx.out')
-rw-r--r--tests/specs/lint/jsx/react-jsx.out12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/specs/lint/jsx/react-jsx.out b/tests/specs/lint/jsx/react-jsx.out
new file mode 100644
index 000000000..c8c700779
--- /dev/null
+++ b/tests/specs/lint/jsx/react-jsx.out
@@ -0,0 +1,12 @@
+error[no-unused-vars]: `React` is never used
+ --> [WILDCARD]mod.tsx:1:7
+ |
+1 | const React = { createElement() {} };
+ | ^^^^^
+ = hint: If this is intentional, prefix it with an underscore like `_React`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+Found 1 problem
+Checked 1 file