Refactored several Supabase client functions and updated them to use generics. Also, the '@kit/supabase-config' package was removed from the project and all references were replaced accordingly. The project's dependencies were updated as well, including the Supabase package which was upgraded to the latest version.
30 lines
605 B
JavaScript
30 lines
605 B
JavaScript
/** @type {import("eslint").Linter.Config} */
|
|
const config = {
|
|
env: {
|
|
es2022: true,
|
|
node: true,
|
|
},
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
project: true,
|
|
},
|
|
plugins: ['@typescript-eslint', 'import'],
|
|
rules: {
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
paths: [
|
|
{
|
|
name: '@kit/supabase/database',
|
|
importNames: ['Database'],
|
|
message:
|
|
'Please use the application types from your app "~/lib/database.types" instead',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|