Skip to content

Commit 4958b56

Browse files
chore: linting, JS version updated
1 parent 10ea978 commit 4958b56

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
{
2-
}
2+
"html.format.wrapLineLength": 80
3+
}

src/app/contact/contact.component.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ label {
1212
.error {
1313
margin-top: -20px;
1414
background: yellow;
15-
padding: .5em;
15+
padding: 0.5em;
1616
display: inline-block;
17-
font-size: .9em;
17+
font-size: 0.9em;
1818
margin-bottom: 20px;
1919
}
2020
}
2121

2222
.cta {
23-
background: #7700FF;
23+
background: #7700ff;
2424
border: none;
2525
color: white;
2626

2727
text-transform: uppercase;
2828
border-radius: 4px;
2929
padding: 1em;
3030
cursor: pointer;
31-
font-family: 'Montserrat';
31+
font-family: "Montserrat";
3232
}
3333

3434
.results {

src/app/home/data.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ export class DataService {
1111

1212
getUsers = (): Observable<apiResponse> => {
1313
return this.http.get<apiResponse>("https://reqres.in/api/users");
14-
}
14+
};
1515
}

src/app/home/home.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class HomeComponent implements OnInit {
1414
constructor(private data: DataService) {}
1515

1616
// on init the Dataservice getUsers() function supplies a user observable.
17-
ngOnInit () {
17+
ngOnInit() {
1818
this.users$ = this.data.getUsers();
19-
};
19+
}
2020
}

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"outDir": "./dist/out-tsc",
66
"sourceMap": true,
77
"declaration": false,
8-
"module": "es2015",
8+
"module": "es2020",
99
"moduleResolution": "node",
1010
"experimentalDecorators": true,
1111
"target": "ES2022",
1212
"typeRoots": [
1313
"node_modules/@types"
1414
],
1515
"lib": [
16-
"es2018",
16+
"es2020",
1717
"dom"
1818
],
1919
"useDefineForClassFields": false

0 commit comments

Comments
 (0)