pugjs / babel-plugin-transform-react-pug

A plugin for transpiling pug templates to jsx
MIT License
808 stars 46 forks source link

Improve className attribute, to be more obvious #71

Closed ezhlobo closed 5 years ago

ezhlobo commented 5 years ago

Closes #69

So it basically make work with className attribute more obvious. If you pass array — you expect array, variable — variable.

codecov-io commented 5 years ago

Codecov Report

Merging #71 into next will increase coverage by 0.74%. The diff coverage is 93.02%.

Impacted file tree graph

@@            Coverage Diff             @@
##             next      #71      +/-   ##
==========================================
+ Coverage   82.24%   82.98%   +0.74%     
==========================================
  Files          20       21       +1     
  Lines         445      482      +37     
  Branches      103      116      +13     
==========================================
+ Hits          366      400      +34     
- Misses         70       73       +3     
  Partials        9        9
Impacted Files Coverage Δ
src/visitors/Tag.js 86.88% <100%> (+1.17%) :arrow_up:
src/utils/get-class-name-value.js 90.62% <90.62%> (ø)

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 2eccbc1...c38603f. Read the comment docs.