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 {
10
10
messages ?: Linter . LintMessage [ ] ;
11
11
}
12
12
13
- function toMarkerPos ( pos : number ) : number {
13
+ function toMarkerPos ( pos : number ) : number {
14
14
return pos - 1 ;
15
15
}
16
16
17
17
function 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
+ } ;
19
22
const to = {
20
23
line : toMarkerPos ( message . endLine || message . line ) - 1 ,
21
24
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");
4
4
const FaviconsWebpackPlugin = require ( "favicons-webpack-plugin" ) ;
5
5
const CopyPlugin = require ( "copy-webpack-plugin" ) ;
6
6
7
- function resolveToProjRoot ( relPath ) {
7
+ function resolveToProjRoot ( relPath ) {
8
8
return path . resolve ( __dirname , relPath ) ;
9
9
}
10
10
@@ -83,9 +83,7 @@ module.exports = {
83
83
} ) ,
84
84
new FaviconsWebpackPlugin ( resolveToProjRoot ( "assets/favicon.png" ) ) ,
85
85
new CopyPlugin ( {
86
- patterns : [
87
- { from : resolveToProjRoot ( "assets/share.png" ) , to : "assets" } ,
88
- ] ,
86
+ patterns : [ { from : resolveToProjRoot ( "assets/share.png" ) , to : "assets" } ] ,
89
87
} ) ,
90
88
] ,
91
89
output : {
You can’t perform that action at this time.
0 commit comments