Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 9be3f61

Browse files
committed
fix format
1 parent 6a94bf1 commit 9be3f61

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/components/CodeEditor.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1717
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+
};
1922
const to = {
2023
line: toMarkerPos(message.endLine || message.line) - 1,
2124
ch: toMarkerPos(message.endColumn || message.column) - 1,

webpack.base.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const webpack = require("webpack");
44
const FaviconsWebpackPlugin = require("favicons-webpack-plugin");
55
const 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: {

0 commit comments

Comments
 (0)