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,6 +1,11 @@
|
||||
export const rolesToColor = (roles: string[]) => roles.includes('registrant') ? 'green' :
|
||||
roles.includes('registrar') ? 'purple' :
|
||||
roles.includes('administrative') ? 'blue' :
|
||||
roles.includes('technical') ? 'orange' :
|
||||
roles.includes('sponsor') ? 'magenta' :
|
||||
roles.includes('billing') ? 'cyan' : 'default'
|
||||
export const rolesToColor = (roles: string[]) => roles.includes('registrant')
|
||||
? 'green'
|
||||
: roles.includes('registrar')
|
||||
? 'purple'
|
||||
: roles.includes('administrative')
|
||||
? 'blue'
|
||||
: roles.includes('technical')
|
||||
? 'orange'
|
||||
: roles.includes('sponsor')
|
||||
? 'magenta'
|
||||
: roles.includes('billing') ? 'cyan' : 'default'
|
||||
|
||||
Reference in New Issue
Block a user