ESLint: fix dangling commas

This commit is contained in:
Yury Bondarenko
2023-06-27 16:23:06 +02:00
parent 725dbc3743
commit 917c36dbe7
1789 changed files with 12452 additions and 12452 deletions

View File

@@ -10,7 +10,7 @@ export const environment: BuildConfig = {
universal: {
preboot: true,
async: true,
time: false
time: false,
},
// Angular Universal server settings.
@@ -24,7 +24,7 @@ export const environment: BuildConfig = {
// The rateLimiter settings limit each IP to a 'max' of 500 requests per 'windowMs' (1 minute).
rateLimiter: {
windowMs: 1 * 60 * 1000, // 1 minute
max: 500 // limit each IP to 500 requests per windowMs
max: 500, // limit each IP to 500 requests per windowMs
},
useProxies: true,
},
@@ -36,11 +36,11 @@ export const environment: BuildConfig = {
port: 443,
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
nameSpace: '/api',
baseUrl: 'https://rest.com/api'
baseUrl: 'https://rest.com/api',
},
actuators: {
endpointPath: '/actuator/health'
endpointPath: '/actuator/health',
},
// Caching settings
@@ -54,7 +54,7 @@ export const environment: BuildConfig = {
autoSync: {
defaultTime: 0,
maxBufferSize: 100,
timePerMethod: { [RestRequestMethod.PATCH]: 3 } as any // time in seconds
timePerMethod: { [RestRequestMethod.PATCH]: 3 } as any, // time in seconds
},
// In-memory cache of server-side rendered pages. Disabled in test environment (max=0)
serverSide: {
@@ -69,8 +69,8 @@ export const environment: BuildConfig = {
max: 0,
timeToLive: 10 * 1000, // 10 seconds
allowStale: true,
}
}
},
},
},
// Authentication settings
@@ -97,8 +97,8 @@ export const environment: BuildConfig = {
// NOTE: Map server-side validators to comparative Angular form validators
validatorMap: {
required: 'required',
regex: 'pattern'
}
regex: 'pattern',
},
},
// Notifications
@@ -110,7 +110,7 @@ export const environment: BuildConfig = {
timeOut: 5000,
clickToClose: true,
// NOTE: 'fade' | 'fromTop' | 'fromRight' | 'fromBottom' | 'fromLeft' | 'rotate' | 'scale'
animate: NotificationAnimationsType.Scale
animate: NotificationAnimationsType.Scale,
},
// Submission settings
@@ -119,51 +119,51 @@ export const environment: BuildConfig = {
// NOTE: which metadata trigger an autosave
metadata: ['dc.title', 'dc.identifier.doi', 'dc.identifier.pmid', 'dc.identifier.arxiv'],
// NOTE: every how many minutes submission is saved automatically
timer: 5
timer: 5,
},
typeBind: {
field: 'dc.type'
field: 'dc.type',
},
icons: {
metadata: [
{
name: 'mainField',
style: 'fas fa-user'
style: 'fas fa-user',
},
{
name: 'relatedField',
style: 'fas fa-university'
style: 'fas fa-university',
},
{
name: 'otherRelatedField',
style: 'fas fa-circle'
style: 'fas fa-circle',
},
{
name: 'default',
style: ''
}
style: '',
},
],
authority: {
confidence: [
{
value: 600,
style: 'text-success'
style: 'text-success',
},
{
value: 500,
style: 'text-info'
style: 'text-info',
},
{
value: 400,
style: 'text-warning'
style: 'text-warning',
},
{
value: 'default',
style: 'text-muted'
style: 'text-muted',
},
]
}
}
],
},
},
},
// NOTE: will log all redux actions and transfers in console
@@ -232,7 +232,7 @@ export const environment: BuildConfig = {
pageSize: 20,
},
communityList: {
pageSize: 20
pageSize: 20,
},
homePage: {
recentSubmissions: {
@@ -241,12 +241,12 @@ export const environment: BuildConfig = {
sortField: 'dc.date.accessioned',
},
topLevelCommunityList: {
pageSize: 5
}
pageSize: 5,
},
},
item: {
edit: {
undoTimeout: 10000 // 10 seconds
undoTimeout: 10000, // 10 seconds
},
// Show the item access status label in items lists
showAccessStatuses: false,
@@ -254,34 +254,34 @@ export const environment: BuildConfig = {
// Number of entries in the bitstream list in the item view page.
// Rounded to the nearest size in the list of selectable sizes on the
// settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
pageSize: 5
}
pageSize: 5,
},
},
collection: {
edit: {
undoTimeout: 10000 // 10 seconds
}
undoTimeout: 10000, // 10 seconds
},
},
themes: [
{
name: 'full-item-page-theme',
regex: 'items/aa6c6c83-3a83-4953-95d1-2bc2e67854d2/full'
regex: 'items/aa6c6c83-3a83-4953-95d1-2bc2e67854d2/full',
},
{
name: 'error-theme',
regex: 'collections/aaaa.*'
regex: 'collections/aaaa.*',
},
{
name: 'handle-theme',
handle: '10673/1233'
handle: '10673/1233',
},
{
name: 'regex-theme',
regex: 'collections\/e8043bc2.*'
regex: 'collections\/e8043bc2.*',
},
{
name: 'uuid-theme',
uuid: '0958c910-2037-42a9-81c7-dca80e3892b4'
uuid: '0958c910-2037-42a9-81c7-dca80e3892b4',
},
{
name: 'base',
@@ -292,7 +292,7 @@ export const environment: BuildConfig = {
},
mediaViewer: {
image: true,
video: true
video: true,
},
info: {
enableEndUserAgreement: true,
@@ -311,7 +311,7 @@ export const environment: BuildConfig = {
{
filter: 'subject',
vocabulary: 'srsc',
enabled: true
}
]
enabled: true,
},
],
};