Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Port JSCS requireObjectKeysOnNewLine rule

See original GitHub issue

What version of ESLint are you using?

"eslint": "^2.4.0",

What parser (default, Babel-ESLint, etc.) are you using?


Please show your full configuration: .eslintrc

  "ecmaFeatures": {
    "modules": true,
    "module":  true
  "env": {
    "mocha": true,
    "node":  true,
    "es6":   true


  "parser": "espree",
  "ecmaFeatures": {},
  "rules": {
    "no-alert": "off",
    "no-array-constructor": "off",
    "no-bitwise": "off",
    "no-caller": "off",
    "no-case-declarations": "error",
    "no-catch-shadow": "off",
    "no-class-assign": "error",
    "no-cond-assign": "error",
    "no-confusing-arrow": "off",
    "no-console": "error",
    "no-const-assign": "error",
    "no-constant-condition": "error",
    "no-continue": "off",
    "no-control-regex": "error",
    "no-debugger": "error",
    "no-delete-var": "error",
    "no-div-regex": "off",
    "no-dupe-class-members": "error",
    "no-dupe-keys": "error",
    "no-dupe-args": "error",
    "no-duplicate-case": "error",
    "no-duplicate-imports": "off",
    "no-else-return": "off",
    "no-empty": "error",
    "no-empty-character-class": "error",
    "no-empty-function": "off",
    "no-empty-pattern": "error",
    "no-eq-null": "off",
    "no-eval": "off",
    "no-ex-assign": "error",
    "no-extend-native": "off",
    "no-extra-bind": "off",
    "no-extra-boolean-cast": "error",
    "no-extra-label": "off",
    "no-extra-parens": "off",
    "no-extra-semi": "error",
    "no-fallthrough": "error",
    "no-floating-decimal": "off",
    "no-func-assign": "error",
    "no-implicit-coercion": "off",
    "no-implicit-globals": "off",
    "no-implied-eval": "off",
    "no-inline-comments": "off",
    "no-inner-declarations": "error",
    "no-invalid-regexp": "error",
    "no-invalid-this": "off",
    "no-irregular-whitespace": "error",
    "no-iterator": "off",
    "no-label-var": "off",
    "no-labels": "off",
    "no-lone-blocks": "off",
    "no-lonely-if": "off",
    "no-loop-func": "off",
    "no-mixed-requires": "off",
    "no-mixed-spaces-and-tabs": "error",
    "linebreak-style": "off",
    "no-multi-spaces": "off",
    "no-multi-str": "off",
    "no-multiple-empty-lines": "off",
    "no-native-reassign": "off",
    "no-negated-condition": "off",
    "no-negated-in-lhs": "error",
    "no-nested-ternary": "off",
    "no-new": "off",
    "no-new-func": "off",
    "no-new-object": "off",
    "no-new-require": "off",
    "no-new-symbol": "error",
    "no-new-wrappers": "off",
    "no-obj-calls": "error",
    "no-octal": "error",
    "no-octal-escape": "off",
    "no-param-reassign": "off",
    "no-path-concat": "off",
    "no-plusplus": "off",
    "no-process-env": "off",
    "no-process-exit": "off",
    "no-proto": "off",
    "no-redeclare": "error",
    "no-regex-spaces": "error",
    "no-restricted-globals": "off",
    "no-restricted-imports": "off",
    "no-restricted-modules": "off",
    "no-restricted-syntax": "off",
    "no-return-assign": "off",
    "no-script-url": "off",
    "no-self-assign": "error",
    "no-self-compare": "off",
    "no-sequences": "off",
    "no-shadow": "off",
    "no-shadow-restricted-names": "off",
    "no-whitespace-before-property": "off",
    "no-spaced-func": "off",
    "no-sparse-arrays": "error",
    "no-sync": "off",
    "no-ternary": "off",
    "no-trailing-spaces": "off",
    "no-this-before-super": "error",
    "no-throw-literal": "off",
    "no-undef": "error",
    "no-undef-init": "off",
    "no-undefined": "off",
    "no-unexpected-multiline": "error",
    "no-underscore-dangle": "off",
    "no-unmodified-loop-condition": "off",
    "no-unneeded-ternary": "off",
    "no-unreachable": "error",
    "no-unused-expressions": "off",
    "no-unused-labels": "error",
    "no-unused-vars": "error",
    "no-use-before-define": "off",
    "no-useless-call": "off",
    "no-useless-concat": "off",
    "no-useless-constructor": "off",
    "no-void": "off",
    "no-var": "off",
    "no-warning-comments": "off",
    "no-with": "off",
    "no-magic-numbers": "off",
    "array-bracket-spacing": "off",
    "array-callback-return": "off",
    "arrow-body-style": "off",
    "arrow-parens": "off",
    "arrow-spacing": "off",
    "accessor-pairs": "off",
    "block-scoped-var": "off",
    "block-spacing": "off",
    "brace-style": [2, "1tbs", { "allowSingleLine": false }],
    "callback-return": "off",
    "camelcase": "off",
    "comma-dangle": "error",
    "comma-spacing": "off",
    "comma-style": "off",
    "complexity": ["off", 11],
    "computed-property-spacing": "off",
    "consistent-return": "off",
    "consistent-this": "off",
    "constructor-super": "error",
    "curly": "off",
    "default-case": "off",
    "dot-location": "off",
    "dot-notation": "off",
    "eol-last": "off",
    "eqeqeq": "off",
    "func-names": "off",
    "func-style": "off",
    "generator-star-spacing": "off",
    "global-require": "off",
    "guard-for-in": "off",
    "handle-callback-err": "off",
    "id-length": "off",
    "indent": [2,2],
    "init-declarations": "off",
    "jsx-quotes": "off",
    "key-spacing": [2, {
      "multiLine": {
        "beforeColon": false,
        "afterColon": true,
        "mode": "minimum"
    "keyword-spacing": "off",
    "lines-around-comment": "off",
    "max-depth": "off",
    "max-len": "off",
    "max-nested-callbacks": "off",
    "max-params": "off",
    "max-statements": "off",
    "max-statements-per-line": "off",
    "new-cap": "off",
    "new-parens": "off",
    "newline-after-var": "off",
    "newline-before-return": "off",
    "newline-per-chained-call": "off",
    "object-curly-spacing": [2, "always"],
    "object-shorthand": "off",
    "one-var": "off",
    "one-var-declaration-per-line": "off",
    "operator-assignment": "off",
    "operator-linebreak": "off",
    "padded-blocks": "off",
    "prefer-arrow-callback": "off",
    "prefer-const": "off",
    "prefer-reflect": "off",
    "prefer-rest-params": "off",
    "prefer-spread": "off",
    "prefer-template": "off",
    "quote-props": "off",
    "quotes": [2, "single"],
    "radix": "off",
    "id-match": "off",
    "id-blacklist": "off",
    "require-jsdoc": "off",
    "require-yield": "off",
    "semi": "off",
    "semi-spacing": "off",
    "sort-vars": "off",
    "sort-imports": "off",
    "space-before-blocks": "off",
    "space-before-function-paren": "off",
    "space-in-parens": "off",
    "space-infix-ops": "off",
    "space-unary-ops": "off",
    "spaced-comment": "off",
    "strict": "off",
    "template-curly-spacing": "off",
    "use-isnan": "error",
    "valid-jsdoc": "off",
    "valid-typeof": "error",
    "vars-on-top": "off",
    "wrap-iife": "off",
    "wrap-regex": "off",
    "yield-star-spacing": "off",
    "yoda": "off"

What did you do? Please include the actual source code causing the issue. tried to lint this line of code var e2eTask = new E2ETask({ ui: this.ui, analytics:, project: this.project }); What did you expect to happen? expected it to give error in favor of below, one key per line

var e2eTask = new E2ETask({ 
  ui: this.ui, 
  project: this.project 

What actually happened? Please include the actual, raw output from ESLint. no error

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (22 by maintainers)

github_iconTop GitHub Comments

vitorbalcommented, Apr 20, 2016

After checking with @pvamshi, I’ll work on this issue!

ljharbcommented, May 17, 2016

Sure, filed #6205 to track this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rules - JSCS
requireObjectKeysOnNewLine. Requires placing object keys on ... This rule is for validating the positioning of line comments. Block comments are ignored.
Read more >
PyCharm 173.3727.137 Release Notes | Knowledge Base
Usability, PY-19357, Docker-Compose restarts all containers, removes all database container data and always exposes service ports.
Read more >
object-property-newline - ESLint - Pluggable JavaScript Linter
This rule permits you to restrict the locations of property specifications in ... The JSCS rule prohibits the second of these formats but...
Read more >
Commits · Luiz Fernando Palin Droubi / SPUViz - GitLab
Unless required by applicable law or agreed to in writing, software ... var client = net.connect({ port : 9999 }, function() {.
Read more >
object-property-newline - Rules - ESLint中文文档
Compatibility. JSCS: requireObjectKeysOnNewLine. Related Rules. brace-style · comma-dangle · key-spacing · object-curly ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found