Skip to content

fix(plugin-dva): 修复合法性检测不支持jsx语法的问题。#829

Open
YdreamW wants to merge 3 commits into
masterfrom
fix/plugin-dva/isValid
Open

fix(plugin-dva): 修复合法性检测不支持jsx语法的问题。#829
YdreamW wants to merge 3 commits into
masterfrom
fix/plugin-dva/isValid

Conversation

@YdreamW

@YdreamW YdreamW commented Apr 12, 2022

Copy link
Copy Markdown
Contributor

No description provided.

@YdreamW

YdreamW commented Apr 12, 2022

Copy link
Copy Markdown
Contributor Author

ts 的尖括号类型的类型断言(<string>a)会和 jsx 语法 (<div/>) 有冲突。为了避免更多的报错,只在以 jsx 或者 tsx结尾的文件增加 babel 的 jsx 插件。如果在 j/tsx 文件下使用 ts 的尖括号断言(这种情况eslint自己就会报错),依然抛出错误,并且增加了一个错误的提示。

@codecov

codecov Bot commented Apr 12, 2022

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.13%. Comparing base (95c3e8a) to head (c17816f).
⚠️ Report is 49 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #829      +/-   ##
==========================================
+ Coverage   45.03%   45.13%   +0.09%     
==========================================
  Files          67       67              
  Lines        1703     1706       +3     
  Branches      452      455       +3     
==========================================
+ Hits          767      770       +3     
  Misses        934      934              
  Partials        2        2              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant