mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-21 03:04:26 -04:00
lint: adjust operator-linebreak
This commit is contained in:
parent
f05ff336b5
commit
4c416d0a3e
@ -22,8 +22,8 @@ import { getUrlForLocale } from '~/src/domain.ts';
|
||||
import { useMainStore } from '~/store/index.ts';
|
||||
import type { Config } from '~~/locale/config.ts';
|
||||
|
||||
interface ProfileFormData extends Omit<Profile, 'birthday' | 'linksMetadata' | 'verifiedLinks' | 'opinions' |
|
||||
'card' | 'cardDark' | 'lastUpdate' | 'id' | 'access'> {
|
||||
interface ProfileFormData extends Omit<Profile, 'birthday' | 'linksMetadata' | 'verifiedLinks' | 'opinions'
|
||||
| 'card' | 'cardDark' | 'lastUpdate' | 'id' | 'access'> {
|
||||
birthday: Date | null;
|
||||
opinions: OpinionFormValue[];
|
||||
}
|
||||
|
@ -175,7 +175,9 @@ export default withNuxt(
|
||||
'@stylistic/object-curly-newline': 'warn',
|
||||
'@stylistic/object-property-newline': ['warn', { allowAllPropertiesOnSameLine: true }],
|
||||
'@stylistic/one-var-declaration-per-line': 'warn',
|
||||
'@stylistic/operator-linebreak': 'warn',
|
||||
'@stylistic/operator-linebreak': ['warn', 'after', {
|
||||
overrides: { '?': 'before', ':': 'before', '|': 'before', '&': 'before' },
|
||||
}],
|
||||
'@stylistic/switch-colon-spacing': 'warn',
|
||||
'@stylistic/generator-star-spacing': ['warn', {
|
||||
before: false,
|
||||
@ -208,7 +210,9 @@ export default withNuxt(
|
||||
'vue/no-sparse-arrays': 'warn',
|
||||
'vue/object-curly-newline': 'warn',
|
||||
'vue/object-shorthand': 'warn',
|
||||
'vue/operator-linebreak': 'warn',
|
||||
'vue/operator-linebreak': ['warn', 'after', {
|
||||
overrides: { '?': 'before', ':': 'before', '|': 'before', '&': 'before' },
|
||||
}],
|
||||
'vue/prefer-use-template-ref': 'error',
|
||||
'vue/prefer-template': 'warn',
|
||||
'vue/require-macro-variable-name': 'error',
|
||||
|
@ -12,9 +12,9 @@ import type { AuthenticatorRow, UserRow } from '~~/server/express/user.ts';
|
||||
|
||||
const getAdminList = defineCachedFunction(async (db: Database, locale: string) => {
|
||||
const admins = await db.all<Pick<
|
||||
UserRow, 'username' | 'id' | 'email' | 'avatarSource'> &
|
||||
Pick<ProfileRow, 'teamName' | 'locale' | 'credentials' | 'credentialsLevel' | 'credentialsName'> &
|
||||
Pick<AuthenticatorRow, 'payload'>>(SQL`
|
||||
UserRow, 'username' | 'id' | 'email' | 'avatarSource'>
|
||||
& Pick<ProfileRow, 'teamName' | 'locale' | 'credentials' | 'credentialsLevel' | 'credentialsName'>
|
||||
& Pick<AuthenticatorRow, 'payload'>>(SQL`
|
||||
SELECT u.username, u.id, u.email, u.avatarSource,
|
||||
p.teamName, p.locale, p.credentials, p.credentialsLevel, p.credentialsName,
|
||||
a.payload
|
||||
|
@ -703,8 +703,8 @@ const cleanupOpinions = (opinions: OpinionFormValue[]) => {
|
||||
return cleanOpinions;
|
||||
};
|
||||
|
||||
type SaveProfile = Omit<Profile, 'linksMetadata' | 'verifiedLinks' | 'footerAreas' | 'credentials' |
|
||||
'card' | 'cardDark' | 'circle' | 'markdown' | 'events' | 'customEvents' | 'lastUpdate' | 'id' | 'access'>
|
||||
type SaveProfile = Omit<Profile, 'linksMetadata' | 'verifiedLinks' | 'footerAreas' | 'credentials'
|
||||
| 'card' | 'cardDark' | 'circle' | 'markdown' | 'events' | 'customEvents' | 'lastUpdate' | 'id' | 'access'>
|
||||
& Partial<Pick<Profile, 'markdown' | 'events' | 'customEvents'>>
|
||||
& Pick<ProfileRow, 'footerAreas' | 'credentials'>;
|
||||
|
||||
@ -1141,8 +1141,8 @@ interface ProfileExportData {
|
||||
images: Record<string, { flag: string }>;
|
||||
}
|
||||
|
||||
type ProfileExportProfile = Omit<Profile, 'linksMetadata' | 'verifiedLinks' | 'footerAreas' | 'credentials' |
|
||||
'card' | 'cardDark' | 'circle' | 'lastUpdate' | 'id' | 'access'>
|
||||
type ProfileExportProfile = Omit<Profile, 'linksMetadata' | 'verifiedLinks' | 'footerAreas' | 'credentials'
|
||||
| 'card' | 'cardDark' | 'circle' | 'lastUpdate' | 'id' | 'access'>
|
||||
& Pick<ProfileRow, 'footerAreas' | 'credentials'>;
|
||||
|
||||
router.get('/profile/export', handleErrorAsync(async (req: Request, res: Response) => {
|
||||
|
@ -107,8 +107,8 @@ export interface ProfileV1 extends Omit<Profile, 'names' | 'pronouns' | 'words'
|
||||
customFlags: Record<string, string>;
|
||||
}
|
||||
|
||||
export interface SaveProfilePayload extends Omit<Profile, 'linksMetadata' | 'verifiedLinks' | 'opinions' |
|
||||
'card' | 'cardDark' | 'lastUpdate' | 'id' | 'access'> {
|
||||
export interface SaveProfilePayload extends Omit<Profile, 'linksMetadata' | 'verifiedLinks' | 'opinions'
|
||||
| 'card' | 'cardDark' | 'lastUpdate' | 'id' | 'access'> {
|
||||
username: string;
|
||||
opinions: OpinionFormValue[];
|
||||
propagate: string[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user