sort-imports examples don't pass with default config #8734
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
documentation
Relates to ESLint's documentation
good first issue
Good for people who haven't worked on ESLint before
rule
Relates to ESLint's core rules
Tell us about your environment
http://eslint.org/demo/ with ecmaVersion6 and sourceType module.
What parser (default, Babel-ESLint, etc.) are you using?
Please show your full configuration:
The default configuration on http://eslint.org/demo/, but with ecmaVersion 6, sourceType of module, turned off
no-unused-var
, turned onsort-imports
.What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
Those are the two examples of "correct" default code from http://eslint.org/docs/rules/sort-imports#default-settings. I expected them to both pass without issue in the default
sort-imports
behavior.What actually happened? Please include the actual, raw output from ESLint.
For the first one, it gives
3:1 - Imports should be sorted alphabetically. (sort-imports)
(this matches the issue I was investigating when I found this, unexpected complaints about sort order). For the second one, it gives2:10 - Parsing error: Unexpected token from ()
, which is pretty strange.The text was updated successfully, but these errors were encountered: