diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 52368d51dea..ff15da37790 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -13,6 +13,24 @@ jobs: uses: actions/checkout@v2 - name: Run prettier run: |- - npx prettier -c 'examples/**/*.{js,jsx,ts,tsx,css,md,json}' + function run_check() { + if $(grep -q '"prettier"' "$1") ; then + pushd "$(dirname $1)" + echo "Running prettier on $(pwd)" + npx prettier -c '**/*.{js,jsx,ts,tsx,css,md,json}' + popd + fi + } + find . -type f -name 'package.json' ! -path '*node_modules*' -print0 | while IFS= read -r -d '' file; do + run_check "$file" + done + + # i18n is not a node package, so we handle that one separately + format-i18n: + runs-on: ubuntu-latest + steps: + - name: Check out repo + uses: actions/checkout@v2 + - name: Run prettier + run: |- 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/examples/flutter-user-management/README.md b/examples/flutter-user-management/README.md index 7d80578feb8..81d69bf72ce 100644 --- a/examples/flutter-user-management/README.md +++ b/examples/flutter-user-management/README.md @@ -50,7 +50,7 @@ Go to the Authentication Settings page (the user icon). Enter the flutter app re This project uses very high-level Authorization using Postgres' Role Level Security. When you start a Postgres database on Supabase, we populate it with an `auth` schema, and some helper functions. -When a user logs in, they are issued a JWT with the role `authenticated` and thier UUID. +When a user logs in, they are issued a JWT with the role `authenticated` and their UUID. We can use these details to provide fine-grained control over what each user can and cannot do. This is a trimmed-down schema, with the policies: diff --git a/examples/nuxtjs-user-management/middleware/README.md b/examples/nuxtjs-user-management/middleware/README.md index 01595ded746..51861b278c1 100644 --- a/examples/nuxtjs-user-management/middleware/README.md +++ b/examples/nuxtjs-user-management/middleware/README.md @@ -3,6 +3,6 @@ **This directory is not required, you can delete it if you don't want to use it.** This directory contains your application middleware. -Middleware let you define custom functions that can be run before rendering either a page or a group of pages. +Middleware lets you define custom functions that can be run before rendering either a page or a group of pages. More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware). diff --git a/studio/README.md b/studio/README.md index 93a00b0554d..cfc8485728a 100644 --- a/studio/README.md +++ b/studio/README.md @@ -66,7 +66,7 @@ SUPABASE_ANON_KEY= SUPABASE_SERVICE_KEY= ``` -Then run the follow commands to install dependencies and start the dashboard. +Then run the following commands to install dependencies and start the dashboard. ``` npm install diff --git a/studio/components/README.md b/studio/components/README.md index c68dc0a126b..42687fd8e57 100644 --- a/studio/components/README.md +++ b/studio/components/README.md @@ -12,7 +12,7 @@ ## Component structure -- If a component has constants and utility methods that are tightly coupled to the itself, keep them close to the component and enclose them in a folder with an `index.tsx` as an entry point +- If a component has constants and utility methods that are tightly coupled to itself, keep them close to the component and enclose them in a folder with an `index.tsx` as an entry point - Otherwise it can just be a file on its own - For example: - ```