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
object-curly-newline counts default export in minProperties #10101
Closed
kadamwhite opened this issue
Mar 19, 2018
· 1 comment
· Fixed by Urigo/tortilla#62, lipis/prettier-setup#48, wemake-services/wemake-vue-template#351, bennycode/website#254 or thisconnect/tools#175
Closed
object-curly-newline counts default export in minProperties #10101
kadamwhite opened this issue
Mar 19, 2018
· 1 comment
· Fixed by Urigo/tortilla#62, lipis/prettier-setup#48, wemake-services/wemake-vue-template#351, bennycode/website#254 or thisconnect/tools#175
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
rule
Relates to ESLint's core rules
Comments
I've confirmed this in our online demo. Setting I'll work on this. |
platinumazure
added a commit
that referenced
this issue
Mar 19, 2018
minProperties only tracks ImportSpecifier and ExportSpecifier nodes
This was referenced Mar 22, 2018
Merged
This was referenced Mar 22, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
rule
Relates to ESLint's core rules
Tell us about your environment
Ubuntu 17.10
(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:
Configuration
.eslintrc
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
package.json
,.eslintrc
andtest.js
as described here; downloading that gist, runningnpm install
and thennpm test
replicates the issue on every environment I can access.test.js
package.json
What did you expect to happen?
I expected no
object-curly-newline
issue 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
minProperties
and I get errors for each curly bracket on Line 1, but not Line 2What actually happened? Please include the actual, raw output from ESLint.
The text was updated successfully, but these errors were encountered: