Skip to content

Instantly share code, notes, and snippets.

@kadamwhite kadamwhite/.eslintrc
Created Mar 19, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.