Skip to content

Commit 74976d3

Browse files
committed
chore: lint
1 parent 49e5ec8 commit 74976d3

File tree

11 files changed

+31
-19
lines changed

11 files changed

+31
-19
lines changed

src/client.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { BrowserRouter } from 'react-router-dom';
55

66
import store from 'src/store';
77
import { getContext } from 'src/services/initial-ssr-data';
8+
// eslint-disable-next-line import/order
89
import initialSSRDataValue from 'src/services/initial-ssr-data/client';
910

1011
import 'src/styles/main.scss';

src/server/middlewares/error-middleware.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { isProd } from 'src/utils/env';
2+
23
import errorPage from '../templates/error-template.hbs';
34

45
/**

src/server/middlewares/redirect-middleware.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
function redirectMiddleware(err, req, res, next) { // eslint-disable-line no-unused-vars
22
if (err.status !== 301) {
33
next(err);
4+
45
return;
56
}
67

src/services/initial-ssr-data/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ let SSRContext = createContext();
44

55
export function createNewContext() {
66
SSRContext = createContext();
7+
78
return SSRContext;
89
}
910

src/styles/abstracts/_variables.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
$brand-primary: hsla(0, 63%, 40%, 1);
22

3-
$container-max-width: 992px;
3+
$container-max-width: 992px;

src/styles/base/_reset.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
* {
44
box-sizing: border-box;
5-
}
5+
}

src/styles/elements/_container.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.container {
2-
max-width: $container-max-width;
3-
width: 100%;
4-
margin: 0 auto;
5-
}
2+
max-width: $container-max-width;
3+
width: 100%;
4+
margin: 0 auto;
5+
}

src/styles/elements/_title.scss

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
.title {
2-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
3-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
4-
sans-serif;
2+
font-family:
3+
-apple-system,
4+
BlinkMacSystemFont,
5+
'Segoe UI',
6+
'Roboto',
7+
'Oxygen',
8+
'Ubuntu',
9+
'Cantarell',
10+
'Fira Sans',
11+
'Droid Sans',
12+
'Helvetica Neue',
13+
sans-serif;
514
font-size: 1rem;
6-
}
15+
}

src/styles/main.scss

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
@import 'abstracts/variables';
2-
32
@import 'base/reset';
4-
53
@import 'elements/container';
6-
@import 'elements/title';
4+
@import 'elements/title';

src/views/Home/Home.scss

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.home {
2-
text-align: center;
3-
direction: ltr;
2+
text-align: center;
3+
direction: ltr;
44

5-
&__logo {
6-
margin-top: 4rem;
7-
}
8-
}
5+
&__logo {
6+
margin-top: 4rem;
7+
}
8+
}

src/views/Home/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import MetaTags from 'react-helmet';
3+
34
import logo from 'src/assets/logo.svg';
45

56
import './Home.scss';

0 commit comments

Comments
 (0)