Skip to content

Commit

Permalink
fix(rules): add SolidJS
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 5, 2023
1 parent f32ca43 commit a68bbd9
Show file tree
Hide file tree
Showing 5 changed files with 18 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 @@ -183,6 +183,7 @@ exports[`all > should match everything 1`] = `
"snowflake",
"snyk",
"socketio",
"solidjs",
"splunk",
"sqlite",
"sqreen",
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 @@ -18,6 +18,7 @@ import './reactEmail.js';
import './rollup.js';
import './sequelize.js';
import './socketio.js';
import './solidjs.js';
import './storybook.js';
import './strapi.js';
import './stylelint.js';
Expand Down
8 changes: 8 additions & 0 deletions src/rules/js/solidjs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'solidjs',
name: 'Solid js',
type: 'tool',
dependencies: [{ type: 'npm', name: 'solid-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 @@ -113,6 +113,7 @@ exports[`npm > should match everything 1`] = `
"slack",
"snyk",
"socketio",
"solidjs",
"sqlite",
"sqreen",
"squarespace",
Expand Down Expand Up @@ -927,6 +928,11 @@ exports[`npm > should match everything 2`] = `
"socket.io",
"0.0.0",
],
[
"npm",
"solid-js",
"0.0.0",
],
[
"npm",
"sqlite3",
Expand Down
2 changes: 2 additions & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export type AllowedKeys =
| 'elasticsearch'
| 'elasticstack'
| 'elixir'
| 'emberjs'
| 'equinix'
| 'esbuild'
| 'eslint'
Expand Down Expand Up @@ -213,6 +214,7 @@ export type AllowedKeys =
| 'snowflake'
| 'snyk'
| 'socketio'
| 'solidjs'
| 'splunk'
| 'sqlite'
| 'sqreen'
Expand Down

0 comments on commit a68bbd9

Please sign in to comment.