/ eslint Public
object-curly-newline counts default export in minProperties #10101
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
ESLint is working incorrectly
Relates to ESLint's core rules
Tell us about your environment
(Also validated on OSX, Node 7.10.0, npm 4.2.0)
What parser (default, Babel-ESLint, etc.) are you using?
Default, I believe(?), with sourceType: module. Full configuration:
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
This gist contains a reduced test case with the
test.jsas described here; downloading that gist, running
npm installand then
npm testreplicates the issue on every environment I can access.
What did you expect to happen?
I expected no
object-curly-newlineissue to be reported for either of these imports, as they both have only a single named export within curly brackets:
however the default export on the first line is being counted as an object property, meaning that the rule matches the
minPropertiesand I get errors for each curly bracket on Line 1, but not Line 2
What actually happened? Please include the actual, raw output from ESLint.
The text was updated successfully, but these errors were encountered: