Skip to content

Fix no-use-before-define linting violation in environment.d.ts #1518

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

Closed
wants to merge 1 commit into from
Closed

Conversation

bmish
Copy link
Contributor

@bmish bmish commented Jul 28, 2022

Running linting in a brand new Ember addon with TypeScript with the ESLint no-use-before-define lint rule enabled:

~/Development/my-test-addon main * yarn eslint --ext=.ts,.js .

~/Development/my-test-addon/tests/dummy/app/config/environment.d.ts
  1:16  error  'config' was used before it was defined                                         no-use-before-define

This is an easy and harmless fix to avoid this lint violation for anyone using this lint rule.

@bmish
Copy link
Contributor Author

bmish commented Jul 28, 2022

Replacement PR: #1521

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant