-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
New rule: object-property-newline #524
Comments
This rule will be included in standard v8 |
Hm, this means I can no longer use a "dsl" like this :( module.exports = [
{ name: 'application', path: '/', component: Application, abstract: true, children: [
{ name: 'home', path: '', component: Home },
{ name: 'messages', async: Messages },
{ name: 'status', path: ':user/status/:id' },
{ name: 'profile', path: ':user', component: Profile, abstract: true, children: [
{ name: 'profile.index', path: '', component: ProfileIndex },
{ name: 'profile.lists' },
{ name: 'profile.edit' }
]}
]}
] |
@KidkArolis Sorry this makes life a bit more difficult for you. You can selectively disable this rule in files where you're defining DSLs by adding a comment to the top of the file: /* eslint-disable object-property-newline */ |
Yeah, no worries, <3 standard, found a couple workarounds.
|
Enforce placing object properties on separate lines.
eslint rule: https://github.com/eslint/eslint/blob/master/docs/rules/object-property-newline.md
OK:
Not OK:
Ecosystem breakage:
The text was updated successfully, but these errors were encountered: