Skip to content

Commit

Permalink
fix(rules): add Puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 7, 2023
1 parent b60a8a3 commit a737e2d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const list: TechItem[] = [
{ key: 'platformsh', name: 'Platform.sh', type: 'hosting' },
{ key: 'postgresql', name: 'Postgresql', type: 'db' },
{ key: 'powershell', name: 'Powershell', type: 'language' },
{ key: 'puppeteer', name: 'Puppeteer', type: 'tool' },
{ key: 'prettier', name: 'Prettier', type: 'tool' },
{ key: 'prisma', name: 'Prisma', type: 'tool' },
{ key: 'prismacloud', name: 'PrismaCloud', type: 'tool' },
Expand Down
1 change: 1 addition & 0 deletions src/rules/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import './hotjar.js';
import './koa.js';
import './prettier.js';
import './prisma.js';
import './puppeteer.js';
import './react.js';
import './reactEmail.js';
import './rollup.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/js/puppeteer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { register } from '../../rules.js';

register({
tech: 'puppeteer',
dependencies: [{ type: 'npm', name: 'puppeteer' }],
});
1 change: 1 addition & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ exports[`npm > should match everything 1`] = `
"postgresql",
"prettier",
"prisma",
"puppeteer",
"rabbitmq",
"react",
"reactemail",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export type AllowedKeys =
| 'prettier'
| 'prisma'
| 'prismacloud'
| 'puppeteer'
| 'python'
| 'rabbitmq'
| 'react'
Expand Down

0 comments on commit a737e2d

Please sign in to comment.