mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add eslint linter
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import vCard from "vcf";
|
||||
import {Entity} from "../api";
|
||||
import vCard from 'vcf'
|
||||
import {Entity} from '../api'
|
||||
|
||||
export const extractDetailsFromJCard = (e: { entity: Entity }): {
|
||||
fn?: string
|
||||
organization?: string;
|
||||
organization?: string
|
||||
} => {
|
||||
if (e.entity.jCard.length === 0) return {fn: e.entity.handle}
|
||||
const jCard = vCard.fromJSON(e.entity.jCard)
|
||||
@@ -11,4 +11,4 @@ export const extractDetailsFromJCard = (e: { entity: Entity }): {
|
||||
const organization = jCard.data.org && !Array.isArray(jCard.data.org) ? jCard.data.org.valueOf() : undefined
|
||||
|
||||
return {fn, organization}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user