File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
test/fixtures/webpack-message-formatting/__snapshots__ Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,6 @@ function formatMessage(message) {
4141 / S y n t a x E r r o r \s + \( ( \d + ) : ( \d + ) \) \s * ( .+ ?) \n / g,
4242 `${ friendlySyntaxErrorLabel } $3 ($1:$2)\n`
4343 ) ;
44- // Remove columns from ESLint formatter output (we added these for more
45- // accurate syntax errors)
46- message = message . replace ( / L i n e ( \d + ) : \d + : / g, 'Line $1:' ) ;
4744 // Clean up export errors
4845 message = message . replace (
4946 / ^ .* e x p o r t ' ( .+ ?) ' w a s n o t f o u n d i n ' ( .+ ?) ' .* $ / gm,
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ Object {
6262Failed to compile .
6363
6464./ src / App .js
65- Line 4 : ' b' is not defined no - undef
65+ Line 4 :13 : ' b' is not defined no - undef
6666
6767Search for the keywords to learn more about each error .
6868
@@ -79,7 +79,7 @@ Object {
7979Compiled with warnings .
8080
8181./ src / App .js
82- Line 3 : ' foo' is defined but never used no - unused - vars
82+ Line 3 :10 : ' foo' is defined but never used no - unused - vars
8383
8484Search for the keywords to learn more about each warning .
8585To ignore , add // eslint-disable-next-line to the line before.
You can’t perform that action at this time.
0 commit comments