Skip to content

Commit

Permalink
fix(rules): add Shopify Hydrogen
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 23, 2023
1 parent 4b80842 commit 5fc5940
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 @@ -344,6 +344,7 @@ exports[`all > should match everything 1`] = `
"sequelize",
"servicenow",
"shopify",
"shopify.hydrogen",
"sitecore",
"sitecore.xmlcloud",
"slack",
Expand Down
1 change: 1 addition & 0 deletions src/rules/framework/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ import './gridsome.js';
import './ghost.js';
import './hexojs.js';
import './hugo.js';
import './shopify.hydrogen.js';
8 changes: 8 additions & 0 deletions src/rules/framework/shopify.hydrogen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'shopify.hydrogen',
name: 'Shopify Hydrogen',
type: 'framework',
dependencies: [{ type: 'npm', name: '@shopify/hydrogen' }],
});
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 @@ -206,6 +206,7 @@ exports[`npm > should match everything 1`] = `
"sentry",
"sequelize",
"shopify",
"shopify.hydrogen",
"sitecore",
"sitecore.xmlcloud",
"slack",
Expand Down Expand Up @@ -1255,6 +1256,11 @@ exports[`npm > should match everything 2`] = `
"@shopify/cli",
"0.0.0",
],
[
"npm",
"@shopify/hydrogen",
"0.0.0",
],
[
"npm",
"@shopify/shopify-api",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ export type AllowedKeys =
| 'sentry'
| 'sequelize'
| 'servicenow'
| 'shopify.hydrogen'
| 'shopify'
| 'sitecore.xmlcloud'
| 'sitecore'
Expand Down

0 comments on commit 5fc5940

Please sign in to comment.