File tree 2 files changed +2
-5
lines changed
test/fixtures/webpack-message-formatting/__snapshots__
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,6 @@ function formatMessage(message) {
41
41
/ S y n t a x E r r o r \s + \( ( \d + ) : ( \d + ) \) \s * ( .+ ?) \n / g,
42
42
`${ friendlySyntaxErrorLabel } $3 ($1:$2)\n`
43
43
) ;
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:' ) ;
47
44
// Clean up export errors
48
45
message = message . replace (
49
46
/ ^ .* 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 {
62
62
Failed to compile .
63
63
64
64
./ src / App .js
65
- Line 4 : ' b' is not defined no - undef
65
+ Line 4 :13 : ' b' is not defined no - undef
66
66
67
67
Search for the keywords to learn more about each error .
68
68
@@ -79,7 +79,7 @@ Object {
79
79
Compiled with warnings .
80
80
81
81
./ 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
83
83
84
84
Search for the keywords to learn more about each warning .
85
85
To ignore , add // eslint-disable-next-line to the line before.
You can’t perform that action at this time.
0 commit comments