Files
supabase/apps/studio/components/interfaces/Linter/Linter.constants.ts
T
Joshen Lim 8dc3ed42b8 Advisor Rules (Part 1) (#34175)
* Scaffold advisor rules

* Wrap up implementation

* Add feature flag

* Fix type issues

* Fix types

* fix

* Scaffold

* Revise UI for advisor rules

* Hide edit button

* Refactor AdvisorRulesLayout

* Some fixes from PR feedback
2025-03-28 15:51:19 +08:00

38 lines
1007 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
category: 'security' | 'performance'
}
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: 'Require immediate attention',
},
{
id: LINTER_LEVELS.WARN,
label: 'Warnings',
description: 'You should try and read through these issues and fix them if necessary.',
descriptionShort: 'To resolve only if necessary',
},
{
id: LINTER_LEVELS.INFO,
label: 'Info',
description: 'You should read through these suggestions and consider implementing them.',
descriptionShort: 'For consideration to implement',
},
]