This website requires JavaScript.
Explore
Help
Sign In
vitalif
/
prettier
Watch
1
Star
0
Fork
You've already forked prettier
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
d4f4edeb96
prettier
/
tests
/
require-amd
/
jsfmt.spec.js
2 lines
56 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Treat define calls like require (#3830) * Treat define calls like require See issue #3829. This commit keeps define calls as a unit when possible, to prevent an extra indent in the body of an AMD-style define. Rather than adding the "define" check in the same case as the existing "require" check, I added a separate condition to explicitly call out the fact that this checks for both AMD and CommonJS modules. `yarn test -u` yields no changes, and `yarn lint` passes successfully. * Added tests for define and require amd formatting This tests the solution for issue #3829. * Add babylon interpreter to require-amd test * Merge require and define checks
2018-01-30 00:44:32 +03:00
run
_spec
(
_
_dirname
,
[
"flow"
,
"typescript"
,
"babylon"
]
)
;