This repository was archived by the owner on Sep 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,15 @@ interface Props {
1010 messages ?: Linter . LintMessage [ ] ;
1111}
1212
13- function toMarkerPos ( pos : number ) : number {
13+ function toMarkerPos ( pos : number ) : number {
1414 return pos - 1 ;
1515}
1616
1717function messageToMarker ( message : Linter . LintMessage ) : Marker {
18- const from = { line : toMarkerPos ( message . line ) , ch : toMarkerPos ( message . column ) } ;
18+ const from = {
19+ line : toMarkerPos ( message . line ) ,
20+ ch : toMarkerPos ( message . column ) ,
21+ } ;
1922 const to = {
2023 line : toMarkerPos ( message . endLine || message . line ) - 1 ,
2124 ch : toMarkerPos ( message . endColumn || message . column ) - 1 ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const webpack = require("webpack");
44const FaviconsWebpackPlugin = require ( "favicons-webpack-plugin" ) ;
55const CopyPlugin = require ( "copy-webpack-plugin" ) ;
66
7- function resolveToProjRoot ( relPath ) {
7+ function resolveToProjRoot ( relPath ) {
88 return path . resolve ( __dirname , relPath ) ;
99}
1010
@@ -83,9 +83,7 @@ module.exports = {
8383 } ) ,
8484 new FaviconsWebpackPlugin ( resolveToProjRoot ( "assets/favicon.png" ) ) ,
8585 new CopyPlugin ( {
86- patterns : [
87- { from : resolveToProjRoot ( "assets/share.png" ) , to : "assets" } ,
88- ] ,
86+ patterns : [ { from : resolveToProjRoot ( "assets/share.png" ) , to : "assets" } ] ,
8987 } ) ,
9088 ] ,
9189 output : {
You can’t perform that action at this time.
0 commit comments