Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

YdreamW
Copy link
Contributor

@YdreamW YdreamW commented Apr 12, 2022

No description provided.

@YdreamW
Copy link
Contributor Author

YdreamW commented Apr 12, 2022

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

@codecov
Copy link

codecov bot commented Apr 12, 2022

Codecov Report

Merging #829 (c17816f) into master (95c3e8a) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            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              
Impacted Files Coverage Δ
packages/plugin-dva/src/getModels/getModels.ts 100.00% <100.00%> (ø)
packages/plugin-dva/src/getModels/isValidModel.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 95c3e8a...c17816f. Read the comment docs.

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