Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: add import warning to sentry/types #71159

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented May 20, 2024

Adds an import warning for sentry/types. For example:

./static/app/stores/demoWalkthroughStore.tsx:4:33 lint/nursery/noRestrictedImports ━━━━━━━━━━━━━━━━━

  ⚠ Please import directly. For example: import type {Organization} from 'sentry/types/organization'

    2 │ import {createStore} from 'reflux';
    3 │
  > 4 │ import {OnboardingTaskKey} from 'sentry/types';
      │                                 ^^^^^^^^^^^^^^
    5 │
    6 │ interface DemoWalkthroughStoreDefinition extends StoreDefinition {

@anonrig anonrig merged commit 92b5cd3 into master May 20, 2024
30 checks passed
@anonrig anonrig deleted the anonrig/add-import-warning branch May 20, 2024 15:19
cmanallen pushed a commit that referenced this pull request May 21, 2024
Adds an import warning for `sentry/types`. For example:

```
./static/app/stores/demoWalkthroughStore.tsx:4:33 lint/nursery/noRestrictedImports ━━━━━━━━━━━━━━━━━

  ⚠ Please import directly. For example: import type {Organization} from 'sentry/types/organization'

    2 │ import {createStore} from 'reflux';
    3 │
  > 4 │ import {OnboardingTaskKey} from 'sentry/types';
      │                                 ^^^^^^^^^^^^^^
    5 │
    6 │ interface DemoWalkthroughStoreDefinition extends StoreDefinition {
```
@github-actions github-actions bot locked and limited conversation to collaborators Jun 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants