Skip to content

Commit

Permalink
chore: remove ts-morph dependency (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
valerybugakov authored May 6, 2022
1 parent e772956 commit 1c99d2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-terms-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sourcegraph/eslint-plugin-sourcegraph': patch
---

Removed `ts-morph` dependency
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { ts, StringLiteral, JsxOpeningElement } from 'ts-morph'

import { ButtonElementToComponent } from '@sourcegraph/codemod-transforms'

import { createRule, getNodeWrapper } from '../../utils'
import { createRule } from '../../utils'
import { getNodeWrapper } from '../../utils/getWrappedNode'

export const messages = {
bannedClassnameMessage: 'Use the Wildcard component `<Button />` instead of the `{{name}}` class.',
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-plugin/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ESLintUtils } from '@typescript-eslint/experimental-utils'

export * from './createRule'
export * from './types'
export * from './getWrappedNode'

// this is done for convenience - saves migrating all of the old rules
const { applyDefault, deepMerge, isObjectNotArray, getParserServices } = ESLintUtils
Expand Down

0 comments on commit 1c99d2a

Please sign in to comment.