Skip to content

Commit

Permalink
fix(rules): add Vercel Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 2, 2023
1 parent eedf231 commit 95f0af8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ exports[`all > should match everything 1`] = `
"travisci",
"typescript",
"vercel",
"vercel.analytics",
"vite",
"vue",
"webpack",
Expand Down
1 change: 1 addition & 0 deletions src/rules/analytics/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import './googleanalytics.js';
import './vercel.analytics.js';
8 changes: 8 additions & 0 deletions src/rules/analytics/vercel.analytics.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'vercel.analytics',
name: 'Vercel Analytics',
type: 'analytics',
dependencies: [{ type: 'npm', name: '@vercel/analytics' }],
});
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 @@ -103,6 +103,7 @@ exports[`npm > should match everything 1`] = `
"tailwind",
"typescript",
"vercel",
"vercel.analytics",
"vite",
"vue",
"webpack",
Expand Down Expand Up @@ -446,6 +447,11 @@ exports[`npm > should match everything 2`] = `
"@supabase/supabase.js",
"0.0.0",
],
[
"npm",
"@vercel/analytics",
"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 @@ -189,6 +189,7 @@ export type AllowedKeys =
| 'traefik'
| 'travisci'
| 'typescript'
| 'vercel.analytics'
| 'vercel'
| 'vite'
| 'vue'
Expand Down

0 comments on commit 95f0af8

Please sign in to comment.