Files
supabase/apps/studio/components/interfaces/Linter/Linter.constants.ts
Peter 5e6921679b fix: typo in tooltip for advisor (#28563)
fix: typo in the tooltip for security advisor
2024-08-12 11:49:34 -05:00

34 lines
807 B
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.',
},
{
id: LINTER_LEVELS.WARN,
label: 'Warnings ',
description: 'You should try and 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.',
},
]