Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Prettierに従わなくてもいい場合

sosukesuzuki
June 28, 2021
2.9k

 Prettierに従わなくてもいい場合

https://nodejs.connpass.com/event/215218/ の発表資料です。すべて個人の意見です。

sosukesuzuki

June 28, 2021
Tweet

Transcript

  1. 1SFUUJFSʹ
    ैΘͳͯ͘΋͍͍৔߹
    NodeֶԂ 36࣌ݶ໨ ΦϯϥΠϯ

    View full-size slide

  2. "CPVUNF
    w 4PTVLF4V[VLJ
    w ஜ೾େֶ৘ใֶ܈৘ใՊֶྨ
    w $ZCP[VϑϩϯτΤϯυΤΩεύʔτνʔ
    Ϝ
    w 1SFUUJFS$PSF5FBN
    w #BCFM5FBN
    w IUUQTUXJUUFSDPN@@TPTVLFTV[VLJ
    w IUUQTHJUIVCDPNTPTVLFTV[VLJ

    View full-size slide

  3. 1SFUUJFSͱ͸
    w IUUQTQSFUUJFSJP
    w IUUQTUXJUUFSDPN1SFUUJFS$PEF
    w 5IF0QJOJPOBUFE$PEF'PSNBUUFS
    w Φϓγϣϯ͕গͳ͍ͷ͕ಛ௃
    w +BWB4DSJQUɺ5ZQF4DSJQUɺ$44ɺ)5.-
    ౳ͷݴޠʹରԠ͍ͯ͠Δ

    View full-size slide

  4. ࢖ΘΕ͍ͯΔ
    OQNͷXFFLMZEPXOMPBET
    4UBUFPG+4

    View full-size slide

  5. ैΘΕ͍ͯΔ
    wʮ࠷ۙ͸೴ࢮͰQSFUUJFSʹै͏೿ʹͳΓ·ͨ͠ɻʯ
    wʮ೴ࢮͰԶʹ͍͍ͭͯ͜ʂ͍ͬͯ͏ͷ͕QSFUUJFSͳΜͩͳʯ
    wʮ1SFUUJFSͷϑΥʔϚοτ͸৴པײ͕͋ͬͯೲಘ͍͔ͳ͍ͱ͜Ζ΋1SFUUJFS
    ༷͕ͦ͏ݴ͏ͷͰͨ͠ΒʜʜΈ͍ͨͳؾ࣋ͪʹͳΔ͚Ͳߦ಄Χοί͚ͩ͸
    ڐͤͳ͍ʯ
    wʮQSFUUJFS༷͕നͱݴͬͨΒࠇ΋ന͘ͳΔʯ
    5XJUUFS͔Β

    View full-size slide

  6. ैΘΕ͍ͯΔ
    5XJUUFS͔Β

    View full-size slide

  7. ʮैΘͳ͚Ε͹͍͚ͳ͍ʯ
    ͱ͍͏͜ͱ͸ͳ͍

    View full-size slide

  8. 1SFUUJFSʹैΘͳͯ͘΋Α͍̏ͭͷέʔε
    w 1SFUUJFS͕ϓϩάϥϚʔͷҙਤΛղऍͰ͖ͳ͍৔߹
    w 1SFUUJFS͕໌Β͔ʹόά͍ͬͯΔ৔߹
    w 1SFUUJFS͕όά͍ͬͯΔ͔΋͠Εͳ͍৔߹

    View full-size slide

  9. 1SFUUJFS͕ϓϩάϥϚʔͷҙਤ
    ΛղऍͰ͖ͳ͍৔߹

    View full-size slide

  10. ҙਤΛղऍͰ͖ͳ͍͜ͱ͕͋Δ
    w 1SFUUJFS͸ߏจΛݟΔ
    w ϓϩάϥϚʔͷҙਤΛղऍͰ͖ͳ͍͜ͱ͕͋Δ
    w ྫߦྻΛ࡞Δؔ਺

    View full-size slide

  11. ରॲQSFUUJFSJHOPSFίϝϯτ
    w QSFUUJFSJHOPSFίϝϯτΛ࢖͏
    w ͦͷίϝϯτͷ࣍ͷϊʔυΛແࢹ͢ΔΑ͏ʹͳΔ
    w IUUQTQSFUUJFSJPEPDTFOJHOPSFIUNM

    View full-size slide

  12. 1SFUUJFS͕໌Β͔ʹ
    όάͬͯΔ৔߹

    View full-size slide

  13. 1SFUUJFSʹ͸ଟ͘ͷόά͕͋Δ

    View full-size slide

  14. ݴޠػೳ΁ͷରԠ͕଍Γ͍ͯͳ͍
    w 5ZQF4DSJQUͷ৽͍͠ߏจͳͲͰϦϦʔεϊʔτʹݴٴ͕ͳ͍৔߹͸ͦΕ
    ʹ௥ैͰ͖͍ͯͳ͍৔߹͕͋Δ
    w ྫ5ZQF4DSJQUͷ1BSBNFUFS1SPQFSUZͰͷPWFSSJEFम০ࢠͷରԠ
    w 1SFUUJFSΛϦϦʔε͔ͯ͠Βଘࡏʹؾ͍ͮͯɺύονϦϦʔεͰର
    Ԡͨ͠

    View full-size slide

  15. ख͕଍Βͳ͍
    w όάͬͯΔ͜ͱʹ͸ؾ͕͍͍ͭͯͯ΋ٕज़తͳ೉қ౓ͷߴ͞΍Ϧιʔεෆ
    ଍Ͱमਖ਼Ͱ͖͍ͯͳ͍͜ͱ͕͋Δ

    View full-size slide

  16. ରॲ(JU)VCͰͷͳΜΒ͔ͷ൓Ԡ
    w *TTVFͷ࡞੒ɾίϝϯτɾ*TTVFίϝϯτ΁ͷ👍
    w ༏ઌ౓Λ͚ͭ΍͍͢
    w ʮݱ࣮ʹى͖͍ͯΔ໰୊ͳΜͩʯͱೝࣝ͞Ε͸΍͘मਖ਼͞ΕΔՄೳੑ͕͋
    Δ
    w ΋ͪΖΜ13Λ࡞ͬͯ΋͍͍

    View full-size slide

  17. 1SFUUJFS͕όά͍ͬͯΔ
    ͔΋͠Εͳ͍৔߹

    View full-size slide

  18. όάͳͷ͔Θ͔Βͳ͍ڍಈ
    w Ұݟ͚ͨͩ͠Ͱ͸໰୊ͳͦ͞͏͕ͩɺΑ͘ߟ͑ͨΒಡΈʹ͍͘
    w ΍΍ಡΈʹ͍͕͘ɺ͜Ε͕1SFUUJFSͷྲّྀͳΜ͡Όͳ͍ͩΖ͏͔

    View full-size slide

  19. ޙ͔ΒόάͱΈͳ͞Εमਖ਼͞Εͨྫ

    View full-size slide

  20. ରॲ(JU)VCͰͷͳΜΒ͔ͷ൓Ԡ
    w *TTVFͷ࡞੒ɾίϝϯτɾ*TTVFίϝϯτ΁ͷ👍
    w ཁ๬Λ஌Δ͜ͱ͕Ͱ͖Δ
    w IUUQTQSFUUJFSJPEPDTFOSBUJPOBMFIUNMʹ͍ΘΏΔ1SFUUJFSͷྲّྀ
    ͱͦͷࠜڌ͕ॻ͍ͯ͋Δ
    w ΋ͪΖΜ13Λ࡞ͬͯ΋͍͍

    View full-size slide

  21. 1SFUUJFSΛ࢖͏໨త͸
    ʮνʔϜ಺ͰίʔσΟϯάελΠϧʹؔ
    ͢Δٞ࿦Λͳ͘͢ʯ͜ͱ

    View full-size slide

  22. ͔͠͠ɺ1SFUUJFS಺Ͱ͸
    ͦ͏͍͏ٞ࿦Λͯ͠Α͍

    View full-size slide

  23. ·ͱΊ
    w QSFUUJFSJHOPSFίϝϯτΛ࢖͓͏
    w όάͬͯͨΒ👍͚ͩͰ͍͍ͷͰ(JU)VC্ͰϦΞΫγϣϯΛ͠Α͏
    w 1SFUUJFS಺Ͱ͸ίʔσΟϯάελΠϧʹ͍ͭͯٞ࿦ͯ͠ྑ͍
    w ߹ཧੑ͕͋Ε͹

    View full-size slide