Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix prettier (#3850)

Inian5ea87ddacc99
diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml
index 6df03d2ebbd..52368d51dea 100644
--- a/.github/workflows/prettier.yml
+++ b/.github/workflows/prettier.yml
@@ -1,28 +1,18 @@
name: Check Code with Prettier
on:
- push:
+ pull_request:
branches:
- - "master"
+ - 'master'
jobs:
-
format:
-
runs-on: ubuntu-latest
steps:
- - name: Check out repo
- uses: actions/checkout@v2
- - name: Run prettier
- run: |-
- npx prettier --write 'examples/**/*.{js,jsx,ts,tsx,css,md,json}'
- npx prettier --write 'i18n/**/*.{js,jsx,ts,tsx,css,md,json}'
- npx prettier --write 'www/**/*.{js,jsx,ts,tsx,css,md,json}'
-
- - name: Commit changes
- uses: stefanzweifel/[email protected]
- with:
- commit_message: Apply Prettier changes
- branch: master
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Check out repo
+ uses: actions/checkout@v2
+ - name: Run prettier
+ run: |-
+ npx prettier -c 'examples/**/*.{js,jsx,ts,tsx,css,md,json}'
+ npx prettier -c 'i18n/**/*.{js,jsx,ts,tsx,css,md,json}'
+ npx prettier -c 'www/**/*.{js,jsx,ts,tsx,css,md,json}'
diff --git a/.prettierrc b/.prettierrc
index 0dee0cb6121..8df6df7757c 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -3,9 +3,5 @@
"tabWidth": 2,
"semi": false,
"singleQuote": true,
- "printWidth": 100,
- "svelteSortOrder" : "styles-scripts-markup",
- "svelteStrictMode": true,
- "svelteBracketNewLine": true,
- "svelteAllowShorthand": false
-}
\ No newline at end of file
+ "printWidth": 100
+}
diff --git a/examples/nextjs-auth-tailwind/.prettierrc b/examples/nextjs-auth-tailwind/.prettierrc
index 1f7ddbc2236..44833a97ae8 100644
--- a/examples/nextjs-auth-tailwind/.prettierrc
+++ b/examples/nextjs-auth-tailwind/.prettierrc
@@ -3,9 +3,5 @@
"tabWidth": 2,
"semi": false,
"singleQuote": true,
- "printWidth": 100,
- "svelteSortOrder" : "styles-scripts-markup",
- "svelteStrictMode": true,
- "svelteBracketNewLine": true,
- "svelteAllowShorthand": false
+ "printWidth": 100
}
\ No newline at end of file
diff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsx
index c0ac54af700..1683235d713 100644
--- a/www/components/BuiltWithSupabase/index.tsx
+++ b/www/components/BuiltWithSupabase/index.tsx
@@ -20,10 +20,7 @@ const BuiltExamples = () => {
There are many example apps and starter projects to get going
</p>
<Space className="justify-center">
- <Link
- href="/docs/guides/examples"
- as="/docs/guides/examples"
- >
+ <Link href="/docs/guides/examples" as="/docs/guides/examples">
<a>
<Button type="default">View all examples</Button>
</a>
diff --git a/www/components/Footer/index.tsx b/www/components/Footer/index.tsx
index bb4600fbf53..3299114cb6e 100644
--- a/www/components/Footer/index.tsx
+++ b/www/components/Footer/index.tsx
@@ -74,10 +74,11 @@ const Footer = (props: Props) => {
<li key={`${segment.title}_link_${idx}`}>
<a
href={link.url}
- className={`text-sm ${link.url
- ? 'text-gray-500 dark:text-dark-100'
- : 'text-gray-400 dark:text-dark-200'
- } hover:text-gray-900 dark:hover:text-gray-300`}
+ className={`text-sm ${
+ link.url
+ ? 'text-gray-500 dark:text-dark-100'
+ : 'text-gray-400 dark:text-dark-200'
+ } hover:text-gray-900 dark:hover:text-gray-300`}
>
{link.text}
{!link.url && (
diff --git a/www/components/Sections/GithubExamples.tsx b/www/components/Sections/GithubExamples.tsx
index efb168dbc1b..2a1f852238d 100644
--- a/www/components/Sections/GithubExamples.tsx
+++ b/www/components/Sections/GithubExamples.tsx
@@ -43,20 +43,14 @@ function GithubExamples() {
</p>
</Typography.Text>
<div className="flex space-y-1.5 flex-col lg:space-y-0 lg:space-x-1.5 lg:flex-row justify-center">
- <Link
- href="/docs/guides/examples#guides"
- as="/docs/guides/examples#guides"
- >
+ <Link href="/docs/guides/examples#guides" as="/docs/guides/examples#guides">
<a>
<Button type="default" icon={<IconBookOpen />}>
View guides
</Button>
</a>
</Link>
- <Link
- href="/docs/guides/examples"
- as="/docs/guides/examples"
- >
+ <Link href="/docs/guides/examples" as="/docs/guides/examples">
<a>
<Button type="default">View all examples</Button>
</a>
diff --git a/www/data/Press.ts b/www/data/Press.ts
index d017aaa0e6c..771acc990f7 100644
--- a/www/data/Press.ts
+++ b/www/data/Press.ts
@@ -1,9 +1,8 @@
-
type PressItem = {
- type: 'podcast' | 'video' | 'article' | 'blog' | 'news' | 'event' | 'other',
- href: string,
- title: string,
- publisher: string,
+ type: 'podcast' | 'video' | 'article' | 'blog' | 'news' | 'event' | 'other'
+ href: string
+ title: string
+ publisher: string
}
const data: PressItem[] = [
@@ -15,15 +14,13 @@ const data: PressItem[] = [
},
{
type: 'article',
- href:
- 'https://techcrunch.com/2020/12/15/supabase-raises-6m-for-its-open-source-firebase-alternative',
+ href: 'https://techcrunch.com/2020/12/15/supabase-raises-6m-for-its-open-source-firebase-alternative',
title: 'Supabase raises $6M for its open-source Firebase alternative',
publisher: 'TechCrunch',
},
{
type: 'podcast',
- href:
- 'https://softwareengineeringdaily.com/2020/10/15/supabase-open-source-firebase-with-paul-copplestone',
+ href: 'https://softwareengineeringdaily.com/2020/10/15/supabase-open-source-firebase-with-paul-copplestone',
title: 'Software Engineering Daily',
publisher: 'Software Engineering Daily',
},
@@ -35,8 +32,7 @@ const data: PressItem[] = [
},
{
type: 'podcast',
- href:
- 'https://www.heavybit.com/library/podcasts/jamstack-radio/ep-71-open-source-firebase-alternative-with-paul-copplestone-of-supabase',
+ href: 'https://www.heavybit.com/library/podcasts/jamstack-radio/ep-71-open-source-firebase-alternative-with-paul-copplestone-of-supabase',
title: 'Jamstack Radio',
publisher: 'Heavybit',
},
@@ -48,6 +44,4 @@ const data: PressItem[] = [
},
]
-export default data;
-
-
+export default data
diff --git a/www/data/Team.tsx b/www/data/Team.tsx
index 11b99b6b27d..8841282b2d7 100644
--- a/www/data/Team.tsx
+++ b/www/data/Team.tsx
@@ -15,8 +15,7 @@ type TeamMember = {
const data: TeamMember[] = [
{
name: 'Caryn Marooney',
- img:
- 'https://res.cloudinary.com/crunchbase-production/image/upload/c_thumb,h_256,w_256,f_auto,g_faces,z_0.7,q_auto:eco,dpr_1/iqltjymln82pxxcwr6kq.png',
+ img: 'https://res.cloudinary.com/crunchbase-production/image/upload/c_thumb,h_256,w_256,f_auto,g_faces,z_0.7,q_auto:eco,dpr_1/iqltjymln82pxxcwr6kq.png',
department: 'Board member',
twitter: 'https://twitter.com/carynm650',
active: true,
diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsx
index f2b42f9f813..6fe834f0351 100644
--- a/www/pages/database/Database.tsx
+++ b/www/pages/database/Database.tsx
@@ -328,10 +328,7 @@ function Database() {
title="40+ preinstalled extensions"
text="We only show a few of the extensions supported by supabase here, but we preinstall many more that you can use right away."
/>
- <Link
- href="/docs/guides/database"
- as="/docs/guides/database"
- >
+ <Link href="/docs/guides/database" as="/docs/guides/database">
<a>
<Button size="small" className="mt-4" type="default" icon={<IconArrowUpRight />}>
Explore documentation
diff --git a/www/tsconfig.json b/www/tsconfig.json
index ad933be6bb2..a123e5bfcdd 100644
--- a/www/tsconfig.json
+++ b/www/tsconfig.json
@@ -2,9 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
- "~/*": [
- "./*"
- ]
+ "~/*": ["./*"]
},
"target": "es5",
"module": "esnext",
@@ -13,11 +11,7 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
- "lib": [
- "dom",
- "dom.iterable",
- "esnext"
- ],
+ "lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"noEmit": true,
"moduleResolution": "node",
@@ -25,12 +19,6 @@
"isolatedModules": true,
"incremental": true
},
- "exclude": [
- "node_modules"
- ],
- "include": [
- "next-env.d.ts",
- "**/*.ts",
- "**/*.tsx"
- ]
+ "exclude": ["node_modules"],
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
}