Skip to content

Instantly share code, notes, and snippets.

@kadamwhite
Created March 19, 2018 19:48
Show Gist options
  • Save kadamwhite/f0098c63df2f9edf5d79b8b8b8b446f5 to your computer and use it in GitHub Desktop.
Save kadamwhite/f0098c63df2f9edf5d79b8b8b8b446f5 to your computer and use it in GitHub Desktop.
object-curly-newline-named-import-issue.js
{
"root": true,
"env": { "es6": true },
"extends": [
"eslint:recommended"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"object-curly-newline": [ "error", {
"minProperties": 2,
"consistent": true
} ]
}
}
{
"name": "test-object-curly-newline",
"scripts": {
"test": "eslint ./test.js"
},
"devDependencies": {
"eslint": "^4.19.0"
}
}
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