Files
supabase/apps/studio/components/interfaces/Linter/Linter.constants.ts
Terry Sutton 8916d8022b Chore/linter v3 (#22842)
* Add links to docs, new categories and update lint script

* Split linter into security and performance

* Move not found to own component

* Move type

* Split linter into two pages, DRY components

* Cleanup
2024-04-18 14:23:11 -02:30

34 lines
811 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 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.',
},
]