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/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}' 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