mirror of
https://github.com/supabase/supabase.git
synced 2026-06-21 22:12:50 +08:00
* 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
34 lines
811 B
TypeScript
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.',
|
|
},
|
|
]
|