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

Consider using eslint-plugin-import for linting export / import statements #65

Open
yokuze opened this issue Jul 9, 2020 · 0 comments

Comments

@yokuze
Copy link
Contributor

yokuze commented Jul 9, 2020

This plugin: https://github.com/benmosher/eslint-plugin-import has several rules for linting the use of import / export statements. Here are a few examples of rules that I think might be useful:

  • first - Ensure that import statements are the first lines that appear at the top of a file.
  • newline-after-import - There must be at least one newline after your import statements.
  • exports-last - Ensure that export statements appear at the end of a file.
  • no-cycle - Warn or error when your code contains cyclical dependencies.
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

No branches or pull requests

1 participant