silvermine/eslint-config-silvermine

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

yokuze opened this issue · 0 comments

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.