Bo Borgerson
8f790ceeed
Satisfy the "space-infix-ops" eslint rule ( #3696 )
...
Future proofing against https://github.com/babel/eslint-config-babel/pull/1 .
Only one violation, even without enforcement!
2016-09-02 18:50:03 -04:00
Simon Lydell
f80463120b
babel-code-frame: Handle code with tabs
...
Previously, the `^` marker was misaligned if the line above contained tabs.
Fixes T7282.
Note: This commit handles a very subtle edge-case differently: When the passed
in column number is larger than the length of the line. Previously, the `^`
marker would be faithfully placed at that exact column number. Now, it is placed
at the end of the line instead (after the last character of the line to be
precise). Ideally, we should define what should happen in edge cases, but that's
out of scope for this PR.
2016-04-11 15:46:32 +02:00
Simon Lydell
dceb988bbb
babel-code-frame: Fix indentation
2016-03-23 19:00:53 +01:00
Simon Lydell
aaaffd32e7
babel-code-frame: Get rid of the line-numbers dependency.
2016-03-23 18:59:39 +01:00
Simon Lydell
d6b8e4c608
babel-code-frame: Add tests
2016-03-23 18:38:07 +01:00
Simon Lydell
6af4ba1937
babel-code-frame: Update type annotation
...
The code allows omitting the column number, but the type annotation for that
parameter didn't.
2016-03-23 17:13:07 +01:00
Sebastian McKenzie
09287643c7
remove line-numbers from babel-code-frame
2016-03-22 22:08:25 +00:00
Amjad Masad
2fbe28cc88
Remove remaining @flow annotations
2016-03-03 15:10:59 -08:00
Amjad Masad
12ee11a0a4
Revert "Remove Flow annotations and pragmas"
...
This reverts commit 4252244d06b225ab26a02d52c04f9940a3e4d6a2.
2016-03-03 15:03:55 -08:00
Sam Goldman
4252244d06
Remove Flow annotations and pragmas
2016-02-28 13:18:57 -10:00
Sebastian McKenzie
5b89849f43
Switch to klint, fix some lint rules
2016-02-14 23:25:14 +00:00
Sebastian McKenzie
745f9fb5bd
clean up babel-code-frame, var -> let etc - closes #2505
2015-10-08 01:19:27 +01:00
Sebastian McKenzie
3ef9bffcc2
split up babel core into multiple modules
2015-08-11 17:40:59 +01:00