Simen Bekkhus
2d35f5a8f7
fix(code-frame): do not pad gutter of empty lines ( #12567 )
...
* fix(code-frame): do not pad gutter of empty lines
* Add workaround for expected Jest e2e test failure
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-12-29 15:26:13 +01:00
Bogdan Savluk
4108524856
Update prettier to v2 ( #11579 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-06-07 22:21:33 +02:00
Tan Li Hau
eb3230f9db
fix code-frame marker with highlighting ( #10211 )
2019-07-15 21:16:18 +02:00
Deven Bansod
41bf66bca2
Migrate babel-code-frame tests to use expect ( #7485 )
...
* Replace `assert.equal` calls with appropriate `expect` calls
* Work-in-progress: Currently targeting only `babel-code-frame` tests
2018-03-04 11:39:12 +01:00
Steven Hargrove
a01007a3d3
Allow falsey, yet valid options for codeFrameColumns() ( #7341 )
...
Allow for overriding default linesAbove/linesBelow values.
2018-02-08 16:52:12 -05:00
Jamie Kyle
5759c33b4c
Add opts.message option to code frames ( #7243 )
...
* Add opts.message option to code frames
* Fix for missing loc.start in code-frame
* Add docs
2018-01-21 14:19:20 +11:00
Mateusz Burzyński
47fa189053
Scoped: update more babel- to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Daniel Tschinder
677160385c
Update chalk to 2.x ( #6003 )
2017-07-24 11:06:57 -04:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
Logan Smyth
12e39116f0
Revert "TEMP: Debugging unexpected test failures."
...
This reverts commit 1fb3d5b0f60d05deb3d926d0b1da883267440965.
2017-06-26 15:49:54 -07:00
Logan Smyth
1fb3d5b0f6
TEMP: Debugging unexpected test failures.
2017-06-26 14:59:39 -07:00
Simen Bekkhus
63b7137dac
Add column range to babel-code-frame ( #5646 )
2017-05-31 15:22:46 -04:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Logan Smyth
b845f2b69d
Re-enable the max-len ESLint rule. ( #5265 )
2017-02-04 11:07:15 -05:00
Brian Ng
8c35b320d3
Bump eslint-config-babel and fix lint ( #5129 )
2017-01-17 10:51:16 +01:00
Sergey Rubanov
292c3ca206
Refactor test packages to use ES modules instead of CJS ( #5138 )
2017-01-16 11:25:04 -05:00
Henry Zhu
672adba9a1
enable prefer const ( #5113 )
2017-01-14 09:48:52 -05:00
Joe Haddad
06820ca17d
Add forceColor option to babel-code-frame ( #4913 )
2016-12-01 23:43:08 -05:00
Andrew Levine
9f8ab29213
Change usage of "suite"/"test" in unit-tests to "describe"/"it" ( #4734 )
...
Fixes #4733
2016-10-15 18:45:35 -04:00
Andrew Levine
c0038221d7
Run ESLint on test files, and fix lint errors in test files ( #4732 )
2016-10-15 18:27:48 -04:00
Henry Zhu
afbe3997a8
babel-code-frame: add options for linesBefore, linesAfter ( #4561 )
...
* babel-code-frame: add options for linesBefore, linesAfter
* add example, use list of keywords
* a [skip ci]
* Update index.js
2016-09-26 16:12:35 -04:00
Simon Lydell
580b09abb1
babel-code-frame: Add test for code with tabs
2016-04-11 15:44:31 +02:00
Simon Lydell
d6b8e4c608
babel-code-frame: Add tests
2016-03-23 18:38:07 +01:00
Sebastian McKenzie
884252b90f
increase test coverage
2015-11-10 14:26:40 -08:00