Skip to content

Commit 70ad1af

Browse files
Merge pull request #43 from nullinside-development-group/feature/Cleanup
Dependency Clean Up
2 parents 4fc1bae + a7321de commit 70ad1af

File tree

9 files changed

+63
-37
lines changed

9 files changed

+63
-37
lines changed

src/eslint.config.mjs

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import path from "node:path";
2+
import { fileURLToPath } from "node:url";
3+
import js from "@eslint/js";
4+
import { FlatCompat } from "@eslint/eslintrc";
5+
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = path.dirname(__filename);
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
recommendedConfig: js.configs.recommended,
11+
allConfig: js.configs.all
12+
});
13+
14+
export default [{
15+
ignores: ["projects/**/*"],
16+
}, ...compat.extends(
17+
"eslint:recommended",
18+
"plugin:@typescript-eslint/recommended",
19+
"plugin:@angular-eslint/recommended",
20+
"plugin:@angular-eslint/template/process-inline-templates",
21+
).map(config => ({
22+
...config,
23+
files: ["**/*.ts"],
24+
})), {
25+
files: ["**/*.ts"],
26+
27+
rules: {
28+
"no-unused-vars": "off",
29+
30+
"@typescript-eslint/no-unused-vars": ["warn", {
31+
argsIgnorePattern: "^_",
32+
varsIgnorePattern: "^_",
33+
caughtErrorsIgnorePattern: "^_",
34+
}],
35+
36+
"@angular-eslint/directive-selector": ["error", {
37+
type: "attribute",
38+
prefix: "app",
39+
style: "camelCase",
40+
}],
41+
42+
"@angular-eslint/component-selector": ["error", {
43+
type: "element",
44+
prefix: "app",
45+
style: "kebab-case",
46+
}],
47+
},
48+
}, ...compat.extends(
49+
"plugin:@angular-eslint/template/recommended",
50+
"plugin:@angular-eslint/template/accessibility",
51+
).map(config => ({
52+
...config,
53+
files: ["**/*.html"],
54+
})), {
55+
files: ["**/*.html"],
56+
rules: {},
57+
}];

src/src/app/common/components/standard-banner/standard-banner.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { MatButton } from '@angular/material/button';
1717
export class StandardBannerComponent implements OnInit {
1818
public userIsLoggedIn: boolean = false;
1919

20-
constructor(private router: Router) {
20+
constructor() {
2121
}
2222

2323
ngOnInit(): void {

src/src/app/common/interface/google-sign-in-response.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/src/app/view/home/home.component.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,3 @@
1010
padding: 10px;
1111
margin: 10px;
1212
}
13-
14-
.logout-button {
15-
text-align: right;
16-
margin-right: 10px;
17-
}

src/src/app/view/login/login.component.scss

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,6 @@ g_id_onload {
88
width: fit-content;
99
}
1010

11-
.twitch-login-button {
12-
text-align: center;
13-
align-content: center;
14-
vertical-align: middle;
15-
margin-left: auto;
16-
margin-right: auto;
17-
margin-top: 5px;
18-
width: 200px;
19-
height: 40px;
20-
background: rgb(191, 148, 255);
21-
color: $background-color;
22-
font-weight: bold;
23-
border-radius: 3px;
24-
cursor: pointer;
25-
}
26-
2711
.side-by-side {
2812
display: inline-block;
2913
vertical-align: middle;

src/src/app/view/twitch/twitch-bot-config/twitch-bot-config.component.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,3 @@
1414
.save {
1515
text-align: right;
1616
}
17-
18-
.snack-bar-error {
19-
--mdc-snackbar-container-color: green;
20-
--mat-mdc-snack-bar-button-color: white;
21-
}

src/src/app/view/twitch/twitch-bot-config/twitch-bot-config.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ export class TwitchBotConfigComponent implements OnInit, OnDestroy {
7373
return;
7474
}
7575

76-
// Get the token, if there isn't one then they didn't get here by hitting the login button. Lets send them back
77-
// to the login page if that's the case. It'll help us keep people synced on updates the permissions we request
78-
// from their tokens.
76+
// Get the token, if there isn't one then they didn't get here by hitting the login button. Let's send them back
77+
// to the login page if that's the case. It'll help us keep people synced on updates to the permissions we
78+
// request from their tokens.
7979
const token = params.get('token');
8080
if (!token) {
8181
this.router.navigate(['twitch-bot']);

src/src/app/view/vm-manager/interface/ActionableDockerResource.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ import { DockerResource } from '../../../common/interface/docker-resource';
33
export interface ActionableDockerResource extends DockerResource {
44
isRunning: boolean;
55
}
6+

src/src/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ body {
190190
}
191191
}
192192

193-
// A common class fixure for starting a flex container.
193+
// A common class fixture for starting a flex container.
194194
.flex-container {
195195
display: flex;
196196
flex-wrap: wrap;

0 commit comments

Comments
 (0)