mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 23:59:08 +03:00
* Nudges * Use popoverseparator instead * use variants pattern (#29599) Update SecurityStatus.tsx * Nudge padding --------- Co-authored-by: Jordi Enric <37541088+jordienr@users.noreply.github.com>
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import { Lint } from 'data/lint/lint-query'
|
|
export enum LINTER_LEVELS {
|
|
ERROR = 'ERROR',
|
|
WARN = 'WARN',
|
|
INFO = 'INFO',
|
|
}
|
|
|
|
export type LintInfo = {
|
|
name: string
|
|
title: string
|
|
icon: JSX.Element
|
|
link: (args: { projectRef: string; metadata: Lint['metadata'] }) => string
|
|
linkText: string
|
|
docsLink: string
|
|
}
|
|
|
|
export const LINT_TABS = [
|
|
{
|
|
id: LINTER_LEVELS.ERROR,
|
|
label: 'Errors',
|
|
description: 'You should consider these issues urgent and fix them as soon as you can.',
|
|
descriptionShort: 'Consider these issues urgent and fix them as soon as you can.',
|
|
},
|
|
{
|
|
id: LINTER_LEVELS.WARN,
|
|
label: 'Warnings ',
|
|
description: 'You should try and read through these issues and fix them if necessary.',
|
|
descriptionShort: 'Read through these issues and fix them if necessary.',
|
|
},
|
|
{
|
|
id: LINTER_LEVELS.INFO,
|
|
label: 'Info ',
|
|
description: 'You should read through these suggestions and consider implementing them.',
|
|
descriptionShort: 'Read through these suggestions and consider implementing them.',
|
|
},
|
|
]
|