ESLint: fix indentation

This commit is contained in:
Yury Bondarenko
2023-06-27 16:14:46 +02:00
parent b505cbc690
commit 0690a201dc
410 changed files with 3488 additions and 3488 deletions

View File

@@ -248,7 +248,7 @@ import { ThemedPageErrorComponent } from './page-error/themed-page-error.compone
initialNavigation: 'enabledBlocking',
preloadingStrategy: NoPreloading,
onSameUrlNavigation: 'reload',
})
})
],
exports: [RouterModule],
})

View File

@@ -11,7 +11,7 @@ import { getFirstCompletedRemoteData } from '../core/shared/operators';
* The self links defined in this list are expected to be requested somewhere in the near future
* Requesting them as embeds will limit the number of requests
*/
export const BITSTREAM_PAGE_LINKS_TO_FOLLOW: FollowLinkConfig<Bitstream>[] = [
export const BITSTREAM_PAGE_LINKS_TO_FOLLOW: FollowLinkConfig<Bitstream>[] = [
followLink('bundle', {}, followLink('primaryBitstream'), followLink('item')),
followLink('format')
];

View File

@@ -64,7 +64,7 @@ import { CollectionAccessControlComponent } from './collection-access-control/co
component: CollectionAccessControlComponent,
data: { title: 'collection.edit.tabs.access-control.title', showBreadcrumbs: true }
},
/* {
/* {
path: 'authorizations',
component: CollectionAuthorizationsComponent,
data: { title: 'collection.edit.tabs.authorizations.title', showBreadcrumbs: true }

View File

@@ -65,7 +65,7 @@ export const link = <T extends HALResource>(
resourceType: ResourceType,
isList = false,
linkName?: keyof T['_links'],
) => {
) => {
return (target: T, propertyName: string) => {
let targetMap = linkMap.get(target.constructor);

View File

@@ -80,7 +80,7 @@ export class LocaleService {
mergeMap(([isAuthenticated, isLoaded]) => {
// TODO to enabled again when https://github.com/DSpace/dspace-angular/issues/739 will be resolved
const epersonLang$: Observable<string[]> = observableOf([]);
/* if (isAuthenticated && isLoaded) {
/* if (isAuthenticated && isLoaded) {
epersonLang$ = this.authService.getAuthenticatedUserFromStore().pipe(
take(1),
map((eperson) => {

View File

@@ -17,7 +17,7 @@ export class HALEndpointService {
constructor(
private requestService: RequestService,
private rdbService: RemoteDataBuildService
) {
) {
}
public getRootHref(): string {

View File

@@ -21,7 +21,7 @@ const imports = [
])
];
if (environment.info.enableEndUserAgreement) {
if (environment.info.enableEndUserAgreement) {
imports.push(
RouterModule.forChild([
{
@@ -31,8 +31,8 @@ const imports = [
data: { title: 'info.end-user-agreement.title', breadcrumbKey: 'info.end-user-agreement' }
}
]));
}
if (environment.info.enablePrivacyStatement) {
}
if (environment.info.enablePrivacyStatement) {
imports.push(
RouterModule.forChild([
{
@@ -42,7 +42,7 @@ const imports = [
data: { title: 'info.privacy.title', breadcrumbKey: 'info.privacy' }
}
]));
}
}
@NgModule({
imports: [

View File

@@ -24,12 +24,12 @@ describe('AccessControlFormContainerComponent', () => {
let fixture: ComponentFixture<AccessControlFormContainerComponent<any>>;
// Mock NgbModal
// Mock NgbModal
@Component({selector: 'ds-ngb-modal', template: ''})
class MockNgbModalComponent {
}
// Mock dependencies
// Mock dependencies
const mockBulkAccessControlService = {
createPayloadFile: jasmine.createSpy('createPayloadFile').and.returnValue({file: 'mocked-file'}),
executeScript: jasmine.createSpy('executeScript').and.returnValue(of('success')),

View File

@@ -9,7 +9,7 @@ import { AccessControlRoutingModule } from '../../access-control/access-control-
@NgModule({
declarations: [
BrowseByComponent,
],
],
imports: [
ResultsBackButtonModule,
BrowseByRoutingModule,

View File

@@ -14,10 +14,10 @@ import { ComcolPageHandleComponent } from './comcol-page-handle.component';
export class ThemedComcolPageHandleComponent extends ThemedComponent<ComcolPageHandleComponent> {
// Optional title
// Optional title
@Input() title: string;
// The value of "handle"
// The value of "handle"
@Input() content: string;
inAndOutputNames: (keyof ComcolPageHandleComponent & keyof this)[] = ['title', 'content'];

View File

@@ -50,7 +50,7 @@ const listElementMock: ItemType = Object.assign(
id: 'ce64f48e-2c9b-411a-ac36-ee429c0e6a88',
label: 'Entity_1',
uuid: 'UUID-ce64f48e-2c9b-411a-ac36-ee429c0e6a88'
}
}
);
describe('EntityDropdownComponent', () => {

View File

@@ -41,7 +41,7 @@ export class DynamicRelationGroupModel extends DsDynamicInputModel {
this.value = value;
}
/* get value() {
/* get value() {
return (isEmpty(this.value)) ? null : this.value
}*/

View File

@@ -1,4 +1,4 @@
/* eslint-disable max-classes-per-file */
/* eslint-disable max-classes-per-file */
import {
DEFAULT_ENTITY_TYPE,
DEFAULT_REPRESENTATION_TYPE,

View File

@@ -1,4 +1,4 @@
/* eslint-disable max-classes-per-file */
/* eslint-disable max-classes-per-file */
import { getComponentByWorkflowTaskOption, rendersWorkflowTaskOption } from './claimed-task-actions-decorator';
describe('ClaimedTaskActions decorator function', () => {

View File

@@ -1,4 +1,4 @@
/* eslint-disable max-classes-per-file */
/* eslint-disable max-classes-per-file */
import { ViewMode } from '../../../../core/shared/view-mode.model';
import { DEFAULT_VIEW_MODE, getListableObjectComponent, listableObjectComponent } from './listable-object.decorator';
import { Context } from '../../../../core/shared/context.model';

View File

@@ -10,7 +10,7 @@ import { CacheableObject } from '../../../core/cache/cacheable-object.model';
* The configuration for a search filter
*/
@typedObject
export class SearchFilterConfig implements CacheableObject {
export class SearchFilterConfig implements CacheableObject {
static type = SEARCH_FILTER_CONFIG;
/**
@@ -77,4 +77,4 @@ import { CacheableObject } from '../../../core/cache/cacheable-object.model';
get paramName(): string {
return 'f.' + this.name;
}
}
}

View File

@@ -67,7 +67,7 @@ import { DynamicDateControlValue } from '@ng-dynamic-forms/core/lib/model/dynami
templateUrl: './section-upload-file-edit.component.html',
})
export class SubmissionSectionUploadFileEditComponent
implements OnInit, OnDestroy {
implements OnInit, OnDestroy {
/**
* The FormComponent reference

View File

@@ -171,7 +171,7 @@ export class SubmissionSectionUploadComponent extends SectionModelComponent {
filter((rd: RemoteData<Collection>) => isNotUndefined((rd.payload))),
tap((collectionRemoteData: RemoteData<Collection>) => this.collectionName = this.dsoNameService.getName(collectionRemoteData.payload)),
// TODO review this part when https://github.com/DSpace/dspace-angular/issues/575 is resolved
/* mergeMap((collectionRemoteData: RemoteData<Collection>) => {
/* mergeMap((collectionRemoteData: RemoteData<Collection>) => {
return this.resourcePolicyService.findByHref(
(collectionRemoteData.payload as any)._links.defaultAccessConditions.href
);

View File

@@ -108,7 +108,7 @@ describe('WorkflowItemActionPageComponent', () => {
@Component({
selector: 'ds-workflow-item-test-action-page',
templateUrl: 'workflow-item-action-page.component.html'
}
}
)
class TestComponent extends WorkflowItemActionPageComponent {
constructor(protected route: ActivatedRoute,

View File

@@ -306,7 +306,7 @@ const DECLARATIONS = [
]
})
/**
/**
* This module serves as an index for all the components in this theme.
* It should import all other modules, so the compiler knows where to find any components referenced
* from a component in this theme