Created
March 19, 2018 19:48
-
-
Save kadamwhite/f0098c63df2f9edf5d79b8b8b8b446f5 to your computer and use it in GitHub Desktop.
object-curly-newline-named-import-issue.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"root": true, | |
"env": { "es6": true }, | |
"extends": [ | |
"eslint:recommended" | |
], | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"rules": { | |
"object-curly-newline": [ "error", { | |
"minProperties": 2, | |
"consistent": true | |
} ] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "test-object-curly-newline", | |
"scripts": { | |
"test": "eslint ./test.js" | |
}, | |
"devDependencies": { | |
"eslint": "^4.19.0" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import DefaultExport, { NamedExport } from 'some-module'; | |
import { NamedExportWithoutDefaultImport } from 'some-other-module'; | |
import { | |
NamedExport2, | |
NamedExport3, | |
} from 'yet-another-module'; | |
const singleLineObj = { prop: NamedExport }; | |
const multiLineSinglePropertyObj = { | |
prop: singleLineObj, | |
}; | |
export default { | |
// MultiLineObj | |
prop1: NamedExport2, | |
prop2: NamedExport3, | |
DefaultExport, | |
NamedExportWithoutDefaultImport, | |
multiLineSinglePropertyObj, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment