Skip to content

Commit

Permalink
fix lint from angular update
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Sep 8, 2024
1 parent 149ff9e commit ea75798
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
7 changes: 3 additions & 4 deletions ui/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"extends": [
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/ng-cli-compat",
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"plugins": [
Expand Down Expand Up @@ -70,6 +69,7 @@
]
}
],
"@typescript-eslint/no-empty-function": ["error", { "allow": ["constructors"] }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-useless-constructor": "off",
"@typescript-eslint/no-unused-vars": [
Expand All @@ -94,8 +94,7 @@
"single"
],
"sort-exports/sort-exports": ["warn", { "sortDir": "asc" }],
"sort-imports": ["warn", { "ignoreDeclarationSort": true }],
"space-before-function-paren": "error"
"sort-imports": ["warn", { "ignoreDeclarationSort": true }]
}
},
{
Expand Down
1 change: 1 addition & 0 deletions ui/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export class AppComponent {
const browserLang = languages.find(x => x === translate.getBrowserLang() || x === translate.getBrowserCultureLang());

for (const lang of languages) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
translate.setTranslation(lang, require('../i18n/' + lang + '.json'));
}

Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/modules/settings/restore/restore.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export class RestoreComponent implements OnInit, OnDestroy {
this.activeModal.close(true);
this.$route.navigate(['/']);
},
() => {},
() => {}, // eslint-disable-line @typescript-eslint/no-empty-function
);
}

Expand Down
1 change: 1 addition & 0 deletions ui/src/app/modules/status/status.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export class StatusComponent implements OnInit, OnDestroy {
}

resetLayout() {
// eslint-disable-next-line @typescript-eslint/no-var-requires
this.setLayout(require('./default-dashboard-layout.json'));
this.gridChangedEvent();
}
Expand Down
1 change: 1 addition & 0 deletions ui/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const environment = {
// eslint-disable-next-line @typescript-eslint/no-var-requires
serverTarget: require('../../../package.json').version,
production: true,
socket: '',
Expand Down
1 change: 1 addition & 0 deletions ui/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

export const environment = {
production: false,
// eslint-disable-next-line @typescript-eslint/no-var-requires
serverTarget: require('../../../package.json').version,
api: {
base: 'http://localhost:8581/api',
Expand Down

0 comments on commit ea75798

Please sign in to comment.