-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major changes : * Supabase JS SDK V2 😇 * Folder structure * Previous module's mutations/queries are now in a `service.server` (collocate all the module's service in one place) * Auth session is reworked to align with folder structure changes * `requireAuthSession` no longer call Supabase Auth API by default to verify user access token (it's still safe, we signed our cookie) * `requireAuthSession` takes a new optional param called `verify` (boolean) to work as before 😉 * No more needing to start a shadow database to create a Prisma migration (I don't know why maybe it's thanks to Supabase). It results in a huge time saving!
- Loading branch information
Showing
91 changed files
with
937 additions
and
1,963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/build | ||
/public/build | ||
*.config* | ||
/test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"plugins": ["tailwindcss"], | ||
"extends": [ | ||
"@remix-run/eslint-config", | ||
"@remix-run/eslint-config/node", | ||
"plugin:tailwindcss/recommended", | ||
"prettier" | ||
], | ||
"parserOptions": { | ||
"project": ["./tsconfig.json"] | ||
}, | ||
"settings": { | ||
// Help eslint-plugin-tailwindcss to parse Tailwind classes outside of className | ||
"tailwindcss": { | ||
"callees": ["tw"] | ||
}, | ||
"jest": { | ||
"version": 27 | ||
} | ||
}, | ||
"rules": { | ||
"no-console": "warn", | ||
"arrow-body-style": ["warn", "as-needed"], | ||
// @typescript-eslint | ||
"@typescript-eslint/no-duplicate-imports": "error", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"vars": "all", | ||
"args": "all", | ||
"argsIgnorePattern": "^_", | ||
"destructuredArrayIgnorePattern": "^_", | ||
"ignoreRestSiblings": false | ||
} | ||
], | ||
//import | ||
"import/no-cycle": "error", | ||
"import/no-unresolved": "error", | ||
"import/no-default-export": "warn", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"groups": ["builtin", "external", "internal"], | ||
"pathGroups": [ | ||
{ | ||
"pattern": "react", | ||
"group": "external", | ||
"position": "before" | ||
} | ||
], | ||
"pathGroupsExcludedImportTypes": ["react"], | ||
"newlines-between": "always", | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
} | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"./app/root.tsx", | ||
"./app/entry.client.tsx", | ||
"./app/entry.server.tsx", | ||
"./app/routes/**/*.tsx" | ||
], | ||
"rules": { | ||
"import/no-default-export": "off" | ||
} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ pnpm-lock.yml | |
|
||
node_modules | ||
|
||
/.cache | ||
/build | ||
/public/build | ||
.env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.