Skip to content

Commit

Permalink
chore: remove pascal-case
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuth committed Nov 6, 2023
1 parent e1a8bad commit 221339a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@
"jest-environment-jsdom": "^29.7.0",
"jest-preset-stylelint": "^6.3.2",
"lint-staged": "^13.3.0",
"pascal-case": "^3.1.2",
"plop": "^3.1.2",
"postcss": "^8.4.31",
"postcss-cli": "^10.1.0",
Expand Down
2 changes: 1 addition & 1 deletion plop-templates/Component/Component.tsx.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface Props {
/**
* BETA: This component is still a work in progress and is subject to change.
*
* `import {{inBraces name}} from "@chanzuckerberg/eds";`
* `import {{inBraces (pascalCase name)}} from "@chanzuckerberg/eds";`
*
* TODO: update this comment with a description of the component.
*/
Expand Down
5 changes: 2 additions & 3 deletions plopfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const pascalCase = require('pascal-case');
const { snakeCase } = require('snake-case');
const { snakeCase } = require('lodash');

module.exports = (plop) => {
plop.setHelper('spacedUpperCase', (txt) =>
Expand All @@ -8,7 +7,7 @@ module.exports = (plop) => {

// This helper allows us to place a variable inside curly braces without spaces
// between the text and the braces.
plop.setHelper('inBraces', (txt) => `{${pascalCase.pascalCase(txt)}}`);
plop.setHelper('inBraces', (txt) => `{${txt}}`);

plop.setGenerator('component', {
description: 'Create a reusable component',
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2656,7 +2656,6 @@ __metadata:
lilconfig: "npm:^2.1.0"
lint-staged: "npm:^13.3.0"
lodash: "npm:^4.17.21"
pascal-case: "npm:^3.1.2"
plop: "npm:^3.1.2"
postcss: "npm:^8.4.31"
postcss-cli: "npm:^10.1.0"
Expand Down

0 comments on commit 221339a

Please sign in to comment.