Skip to content

Commit

Permalink
Stop hardcoding flow parser for JSCodeShift codemods (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
jopdeklein authored Oct 14, 2022
1 parent 4bec562 commit 0c68b0b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
> - :house: [Internal]
> - :nail_care: [Polish]
# v3.3.1
- :house: Make JSCodeShift parser configurable

# v3.3.0
- :rocket: Add getEnabledFeatures method.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opticks",
"version": "3.3.0",
"version": "3.3.1",
"description": "FindHotel Toggle Flag JavaScript SDK",
"main": "lib/simple.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/transform/__tests__/booleanToggle.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const result = <div>Foo</div>
fooLoserOptions,
`
import { booleanToggle } from '${packageName}'
const Foo = () => void
const Foo = () => null
const result = <div>Foo{booleanToggle('foo', () => Foo())}</div>
`,
`
Expand Down
2 changes: 0 additions & 2 deletions src/transform/booleanToggle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// @flow

module.exports.parser = 'flow'

const PACKAGE_NAME = 'opticks'
const BOOLEAN_TOGGLE_FUNCTION_NAME = 'booleanToggle'

Expand Down
2 changes: 0 additions & 2 deletions src/transform/toggle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// @flow

module.exports.parser = 'flow'

const PACKAGE_NAME = 'opticks'
const FUNCTION_NAME = 'toggle'

Expand Down

0 comments on commit 0c68b0b

Please sign in to comment.