Skip to content

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.

2 participants