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,11 +1,19 @@
|
||||
import {EventAction} from "../api";
|
||||
import {EventAction} from '../api'
|
||||
|
||||
export const actionToColor = (a: EventAction) => a === 'registration' ? 'green' :
|
||||
a === 'reregistration' ? 'cyan' :
|
||||
a === 'expiration' ? 'red' :
|
||||
a === 'deletion' ? 'magenta' :
|
||||
a === 'transfer' ? 'orange' :
|
||||
a === 'last changed' ? 'blue' :
|
||||
a === 'registrar expiration' ? 'red' :
|
||||
a === 'reinstantiation' ? 'purple' :
|
||||
a === 'enum validation expiration' ? 'red' : 'default'
|
||||
export const actionToColor = (a: EventAction) => a === 'registration'
|
||||
? 'green'
|
||||
: a === 'reregistration'
|
||||
? 'cyan'
|
||||
: a === 'expiration'
|
||||
? 'red'
|
||||
: a === 'deletion'
|
||||
? 'magenta'
|
||||
: a === 'transfer'
|
||||
? 'orange'
|
||||
: a === 'last changed'
|
||||
? 'blue'
|
||||
: a === 'registrar expiration'
|
||||
? 'red'
|
||||
: a === 'reinstantiation'
|
||||
? 'purple'
|
||||
: a === 'enum validation expiration' ? 'red' : 'default'
|
||||
|
||||
Reference in New Issue
Block a user