Skip to content

Commit b2babb7

Browse files
committed
feat: Add pascalCase
1 parent c64356c commit b2babb7

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "babel-plugin-transform-react-qa-classes",
3-
"version": "0.0.0-semantic-release",
3+
"version": "1.3.1",
44
"license": "MIT",
55
"description": "Add component's name in `data-qa` attributes to React Components Edit",
66
"repository": {
@@ -31,21 +31,22 @@
3131
"travis-deploy-once": "travis-deploy-once"
3232
},
3333
"dependencies": {
34-
"@semantic-release/github": "^5.5.5",
35-
"@semantic-release/npm": "^5.3.4",
36-
"eslint-config-davesnx-rules": "^1.0.0",
3734
"lodash.camelcase": "^4.3.0",
3835
"lodash.isstring": "^4.0.1",
3936
"lodash.kebabcase": "^4.1.1",
40-
"lodash.snakecase": "^4.1.1"
37+
"lodash.snakecase": "^4.1.1",
38+
"pascalcase": "^1.0.0"
4139
},
4240
"devDependencies": {
41+
"@semantic-release/github": "^5.5.5",
42+
"@semantic-release/npm": "^5.3.4",
4343
"babel-cli": "6.24.1",
4444
"babel-helper-plugin-test-runner": "^6.24.1",
4545
"babel-preset-es2015": "^6.24.1",
4646
"babel-preset-react": "^6.24.1",
4747
"babel-preset-stage-0": "^6.24.1",
4848
"babel-types": "^6.26.0",
49+
"eslint-config-davesnx-rules": "^1.0.0",
4950
"husky": "^1.1.2",
5051
"mocha": "^3.1.2",
5152
"semantic-release": "^15.10.3",

src/options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import kebabCase from 'lodash.kebabcase'
22
import camelCase from 'lodash.camelcase'
33
import snakeCase from 'lodash.snakecase'
4+
import pascalCase from 'pascalcase'
45
import isString from 'lodash.isstring'
56

67
const langTransforms = {
78
kebab: kebabCase,
89
camel: camelCase,
9-
snake: snakeCase
10+
snake: snakeCase,
11+
pascal: pascalCase
1012
}
1113

1214
const isValidOption = opt => opt && isString(opt)

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6613,6 +6613,11 @@ pascalcase@^0.1.1:
66136613
version "0.1.1"
66146614
resolved "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"
66156615

6616+
pascalcase@^1.0.0:
6617+
version "1.0.0"
6618+
resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-1.0.0.tgz#d2fd7d73f2969606d2b56e17f5261be41c43c381"
6619+
integrity sha512-BSExi0rRnCHReJys6NocaK+cfTXNinAegfWBvr0JD3hiaEG7Nuc7r0CIdOJunXrs8gU/sbHQ9dxVAtiVQisjmg==
6620+
66166621
path-dirname@^1.0.0:
66176622
version "1.0.2"
66186623
resolved "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0"

0 commit comments

Comments
 (0)