File tree Expand file tree Collapse file tree 10 files changed +18
-19
lines changed
Expand file tree Collapse file tree 10 files changed +18
-19
lines changed Original file line number Diff line number Diff line change 4343
4444- [ getComponentNameFromIdentifier] ( functions/getComponentNameFromIdentifier.md )
4545- [ getFunctionComponentIdentifier] ( functions/getFunctionComponentIdentifier.md )
46- - [ getId] ( functions/getId.md )
4746- [ hasNoneOrValidComponentName] ( functions/hasNoneOrValidComponentName.md )
4847- [ isCallFromReact] ( functions/isCallFromReact.md )
4948- [ isCallFromReactMember] ( functions/isCallFromReactMember.md )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import * as AST from "@eslint-react/ast" ;
22import { _ } from "@eslint-react/eff" ;
3+ import { getId } from "@eslint-react/shared" ;
34import type { ESLintUtils , TSESTree } from "@typescript-eslint/utils" ;
45
5- import { getId } from "../utils" ;
66import { ERClassComponentFlag } from "./component-flag" ;
77import type { ERClassComponent } from "./component-semantic-node" ;
88import { isClassComponent , isPureComponent } from "./is" ;
Original file line number Diff line number Diff line change 22import * as AST from "@eslint-react/ast" ;
33import { _ } from "@eslint-react/eff" ;
44import * as JSX from "@eslint-react/jsx" ;
5- import type { RuleContext } from "@eslint-react/shared" ;
5+ import { getId , type RuleContext } from "@eslint-react/shared" ;
66import type { TSESTree } from "@typescript-eslint/types" ;
77import { AST_NODE_TYPES as T } from "@typescript-eslint/types" ;
88import type { ESLintUtils } from "@typescript-eslint/utils" ;
99
1010import { isChildrenOfCreateElement } from "../element" ;
1111import { isReactHookCall } from "../hook" ;
12- import { getId } from "../utils" ;
1312import { DEFAULT_COMPONENT_HINT , ERComponentHint } from "./component-collector-hint" ;
1413import { ERFunctionComponentFlag } from "./component-flag" ;
1514import { getFunctionComponentIdentifier } from "./component-id" ;
Original file line number Diff line number Diff line change 11import * as AST from "@eslint-react/ast" ;
22import { _ } from "@eslint-react/eff" ;
3+ import { getId } from "@eslint-react/shared" ;
34import type { ESLintUtils , TSESTree } from "@typescript-eslint/utils" ;
45
5- import { getId } from "../utils" ;
66import { isReactHookName } from "./hook-name" ;
77import type { ERHook } from "./hook-semantic-node" ;
88import { isReactHookCall } from "./is" ;
Original file line number Diff line number Diff line change 1- export * from "./get-id" ;
21export * from "./is-from-react" ;
32export * from "./is-initialized-from-react" ;
43export * from "./is-react-api" ;
Original file line number Diff line number Diff line change 4141## Functions
4242
4343- [ defineSettings] ( functions/defineSettings.md )
44+ - [ getId] ( functions/getId.md )
4445- [ getReactVersion] ( functions/getReactVersion.md )
4546- [ getSettingsFromContext] ( functions/getSettingsFromContext.md )
Original file line number Diff line number Diff line change 1+ [ ** @eslint-react/shared ** ] ( ../README.md )
2+
3+ ***
4+
5+ [ @eslint-react/shared ] ( ../README.md ) / getId
6+
7+ # Function: getId()
8+
9+ > ** getId** (): ` string `
10+
11+ ## Returns
12+
13+ ` string `
File renamed without changes.
Original file line number Diff line number Diff line change 11export * from "./constants" ;
22export * from "./create-rule" ;
3+ export * from "./get-id" ;
34export * from "./get-react-version" ;
45export * from "./schemas" ;
56export * from "./settings" ;
You can’t perform that action at this time.
0 commit comments