Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 32865e5

Browse files
committed
Code reformatting; don't align variables.
1 parent eb7f476 commit 32865e5

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

configs/webpack/common.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// shared config (dev and prod)
2-
const {resolve} = require('path');
3-
const {CheckerPlugin} = require('awesome-typescript-loader');
4-
const StyleLintPlugin = require('stylelint-webpack-plugin');
2+
const {resolve} = require('path');
3+
const {CheckerPlugin} = require('awesome-typescript-loader');
4+
const StyleLintPlugin = require('stylelint-webpack-plugin');
55
const HtmlWebpackPlugin = require('html-webpack-plugin');
66

77
module.exports = {

configs/webpack/dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// development config
2-
const merge = require('webpack-merge');
3-
const webpack = require('webpack');
2+
const merge = require('webpack-merge');
3+
const webpack = require('webpack');
44
const commonConfig = require('./common');
55

66
module.exports = merge(commonConfig, {

configs/webpack/prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// production config
2-
const merge = require('webpack-merge');
2+
const merge = require('webpack-merge');
33
const {resolve} = require('path');
44

55
const commonConfig = require('./common');

express.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const express = require('express');
2-
const app = express();
1+
const express = require('express');
2+
const app = express();
33
const portNumber = 3000;
4-
const sourceDir = 'dist';
4+
const sourceDir = 'dist';
55

66
app.use(express.static(sourceDir));
77

src/assets/scss/App.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
$bg-color: yellow;
2+
$border-color: red;
3+
14
.app {
25
font-family: helvetica, arial, sans-serif;
36
padding: 2em;
4-
border: 5px solid red;
7+
border: 5px solid $border-color;
58

69
p {
7-
background-color: yellow;
10+
background-color: $bg-color;
811
}
912
}

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ render(
1313
);
1414

1515
// Hot Module Replacement API
16-
declare let module: {hot: any};
16+
declare let module: { hot: any };
1717

1818
if (module.hot) {
1919
module.hot.accept("./components/App", () => {

0 commit comments

Comments
 (0)