mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
## Problem six apps had no shared lint checks for invalid tailwind classes, off-scale values, and raw colors. ## Solution add @shadcn/lint warnings with narrow exceptions for existing theme colors and artwork. fix several invalid classes. the existing lint command reports findings without blocking prs on the current warning count. ## Review instructions 1. check the shared rules and app-specific exceptions. 2. run `pnpm --filter design-system lint` and confirm it reports shadcn warnings without errors. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which references [WORD_LIST](https://github.com/supabase/supabase/blob/master/apps/docs/WORD_LIST.md) and the docs [CONTRIBUTING](https://github.com/supabase/supabase/blob/master/apps/docs/CONTRIBUTING.md) guide <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved vertical alignment of checkbox labels and supporting text in dialogs, settings, and examples. * Corrected alignment of organization member details and the color styling of deprecated chart text. * Standardized spacing in the date and time editor without changing its appearance or behavior. * **Developer Experience** * Updated linting and UI configuration across several apps to support consistent style checks. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
18 lines
509 B
JavaScript
18 lines
509 B
JavaScript
const { defineConfig } = require('eslint/config')
|
|
const supabaseConfig = require('eslint-config-supabase/next')
|
|
|
|
module.exports = defineConfig([
|
|
supabaseConfig,
|
|
{
|
|
files: ['registry/default/components/ui/**/*.{ts,tsx}'],
|
|
rules: {
|
|
'shadcn/no-arbitrary-values': 'off',
|
|
},
|
|
},
|
|
{
|
|
// registry example includes the supplied brand mark colors
|
|
files: ['registry/default/platform/platform-kit-nextjs/components/logo-supabase.tsx'],
|
|
rules: { 'shadcn/no-raw-colors': 'off' },
|
|
},
|
|
])
|