mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
chore: Add prettier plugin for sorting imports (#41608)
* Add prettier plugin for sorting imports. * Migrate the prettier config to a js file. Make the sort imports conditional which will work only in code editors. * Remove unneeded commands for running prettier. * Fix the regex to be more specific. * Another fix for the import regex.
This commit is contained in:
1 parent
6aa59ffe29
commit
07b9702be3
6 files changed
+94
-34
No files matched your search
+3
-2
@@ -22,8 +22,8 @@
|
||||
"dev:design-system": "turbo run dev --filter=design-system --parallel",
|
||||
"lint": "turbo run lint",
|
||||
"typecheck": "turbo --continue typecheck",
|
||||
"test:prettier": "prettier --cache --check '{apps,packages}/**/*.{js,jsx,ts,tsx,css,md,mdx,json}'",
|
||||
"format": "prettier --cache --write '{apps,packages}/**/*.{js,jsx,ts,tsx,css,md,mdx,json}'",
|
||||
"test:prettier": "SORT_IMPORTS=false prettier --cache --check '{apps,packages}/**/*.{js,jsx,ts,tsx,css,md,mdx,json}'",
|
||||
"format": "SORT_IMPORTS=false prettier --cache --write '{apps,packages}/**/*.{js,jsx,ts,tsx,css,md,mdx,json}'",
|
||||
"test:docs": "turbo run test --filter=docs",
|
||||
"test:ui": "turbo run test --filter=ui",
|
||||
"test:ui-patterns": "turbo run test --filter=ui-patterns",
|
||||
@@ -44,6 +44,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aws-sdk/client-secrets-manager": "^3.823.0",
|
||||
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
|
||||
"@types/node": "catalog:",
|
||||
"eslint": "^9.0.0",
|
||||
"prettier": "3.2.4",
|
||||
|
||||
Reference in new issue
Block a user