Fix prettier (#3850)

* move prettier action to check on pr

* run prettier
This commit is contained in:
Inian authored and GitHub committed 2021-11-11 17:17:26 +08:00
1 parent f4a1b5ac69
commit 5ea87ddacc
10 files changed
+34 -82

No files matched your search

+9 -19
View File
@@ -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/git-auto-commit-action@v2.3.0
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}'
+2 -6
View File
@@ -3,9 +3,5 @@
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"printWidth": 100,
"svelteSortOrder" : "styles-scripts-markup",
"svelteStrictMode": true,
"svelteBracketNewLine": true,
"svelteAllowShorthand": false
}
"printWidth": 100
}
+1 -5
View File
@@ -3,9 +3,5 @@
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"printWidth": 100,
"svelteSortOrder" : "styles-scripts-markup",
"svelteStrictMode": true,
"svelteBracketNewLine": true,
"svelteAllowShorthand": false
"printWidth": 100
}
+1 -4
View File
@@ -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>
+5 -4
View File
@@ -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 && (
+2 -8
View File
@@ -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>
+8 -14
View File
@@ -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
+1 -2
View File
@@ -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,
+1 -4
View File
@@ -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
+4 -16
View File
@@ -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"]
}