Skip to content

Commit

Permalink
fix(rules): add Salesforce
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 23, 2023
1 parent 6429c7b commit e19c870
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/saas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import './pagerduty.js';
import './placekit.js';
import './prismacloud.js';
import './resend.js';
import './salesforce.js';
import './sentry.js';
import './shopify.js';
import './slack.js';
Expand Down
15 changes: 15 additions & 0 deletions src/rules/saas/salesforce.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { register } from '../../register.js';

register({
tech: 'salesforce',
name: 'Salesforce',
type: 'saas',
dependencies: [
{
type: 'npm',
name: /^@salesforce\//,
example: '@salesforce/kit',
},
{ type: 'npm', name: 'jsforce' },
],
});
11 changes: 11 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ exports[`npm > should match everything 1`] = `
"renovate",
"resend",
"rollup",
"salesforce",
"scaleway",
"sentry",
"sequelize",
Expand Down Expand Up @@ -370,6 +371,11 @@ exports[`npm > should match everything 2`] = `
"@relative-ci/agent",
"0.0.0",
],
[
"npm",
"@salesforce/kit",
"0.0.0",
],
[
"npm",
"@scaleway/sdk",
Expand Down Expand Up @@ -515,6 +521,11 @@ exports[`npm > should match everything 2`] = `
"ioredis",
"0.0.0",
],
[
"npm",
"jsforce",
"0.0.0",
],
[
"npm",
"koa",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export type AllowedKeys =
| 'rollup'
| 'ruby'
| 'rust'
| 'salesforce'
| 'scaleway'
| 'scss'
| 'sentry'
Expand Down

0 comments on commit e19c870

Please sign in to comment.