Skip to content

Commit

Permalink
fix(rules): add Supabase
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 23, 2023
1 parent e19c870 commit d9e0225
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ import './ovh.js';
import './platformsh.js';
import './render.js';
import './scaleway.js';
import './supabase.js';
import './vercel.js';
10 changes: 10 additions & 0 deletions src/rules/hosting/supabase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { register } from '../../register.js';

register({
tech: 'supabase',
name: 'Supabase',
type: 'hosting',
dependencies: [
{ type: 'npm', name: /^@scaleway\//, example: '@supabase/supabase.js' },
],
});
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ exports[`npm > should match everything 1`] = `
"sqreen",
"storybook",
"strapi",
"supabase",
"tailwind",
"typescript",
"vercel",
Expand Down Expand Up @@ -401,6 +402,11 @@ exports[`npm > should match everything 2`] = `
"@strapi/strapi",
"0.0.0",
],
[
"npm",
"@supabase/supabase.js",
"0.0.0",
],
[
"npm",
"algoliasearch",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export type AllowedKeys =
| 'strapi'
| 'styleci'
| 'stylelint'
| 'supabase'
| 'swift'
| 'tailwind'
| 'teamcity'
Expand Down

0 comments on commit d9e0225

Please sign in to comment.