Skip to content

Commit

Permalink
chore: create codemods for rte
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaklygin committed Jun 26, 2023
1 parent 1c38beb commit 8a53efa
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { Something, transformString } from 'some-module'
import { Container, RichText, Typography } from '@toptal/picasso'
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Something, transformString } from 'some-module'
import { Container, Typography } from '@toptal/picasso'
import { RichText } from '@toptal/picasso-rich-text-editor'
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "somemodule",
"description": "test",
"version": "0.0.3",
"author": "Toptal",
"license": "ISC",
"main": "./src/index.ts",
"dependencies": {
"@toptal/picasso": "35.0.2",
"@toptal/picasso-forms": "57.0.0"
},
"private": true,
"sideEffects": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "somemodule",
"description": "test",
"version": "0.0.3",
"author": "Toptal",
"license": "ISC",
"main": "./src/index.ts",
"dependencies": {
"@toptal/picasso": "35.0.2",
"@toptal/picasso-forms": "57.0.0"
},
"private": true,
"sideEffects": false
}
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import { htmlToHast } from '@toptal/picasso/utils'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import { htmlToHast } from '@toptal/picasso-rich-text-editor/utils'
1 change: 1 addition & 0 deletions packages/picasso-codemod/src/v36.0.0/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './rich-text-editor-replacement'
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { Transform } from 'jscodeshift'

const transform: Transform = (file, api) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const j = api.jscodeshift
// const root = j(file.source)
}

export default transform

0 comments on commit 8a53efa

Please sign in to comment.