Skip to content

Commit 1c99d2a

Browse files
chore: remove ts-morph dependency (#121)
1 parent e772956 commit 1c99d2a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/thirty-terms-shake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sourcegraph/eslint-plugin-sourcegraph': patch
3+
---
4+
5+
Removed `ts-morph` dependency

packages/eslint-plugin/src/rules/use-button-component/use-button-component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { ts, StringLiteral, JsxOpeningElement } from 'ts-morph'
33

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

6-
import { createRule, getNodeWrapper } from '../../utils'
6+
import { createRule } from '../../utils'
7+
import { getNodeWrapper } from '../../utils/getWrappedNode'
78

89
export const messages = {
910
bannedClassnameMessage: 'Use the Wildcard component `<Button />` instead of the `{{name}}` class.',

packages/eslint-plugin/src/utils/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { ESLintUtils } from '@typescript-eslint/experimental-utils'
22

33
export * from './createRule'
44
export * from './types'
5-
export * from './getWrappedNode'
65

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

0 commit comments

Comments
 (0)