question-mark
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.

Update: Add "consistent" option to array-bracket-newline

See original GitHub issue

object-curly-newline (https://eslint.org/docs/rules/object-curly-newline) and the soon to be merged function-paren-newline (https://github.com/eslint/eslint/pull/8102#issuecomment-323196147) both support the “consistent” option, allowing users to either use a newline on both or neither end.

array-bracket-newline ought to have a similar option, as it is a similar rule.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
btmillscommented, Sep 24, 2017

Just added my 👍. This is now accepted!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[`array-bracket-newline`] Add option `consistent` to the object ...
The multiline: true option forces to either write all elements of an array in one line (one after another), or split them into...
Read more >
array-bracket-newline - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
array-element-newline: combining "consistent" and "multiline"
I'm looking to configure my ESLint rules such that: newlines between array elements must be consistent, i.e. if there's a newline between ...
Read more >
vue/array-bracket-newline - eslint-plugin-vue
The --fix option on the command line can automatically fix some of the problems reported by this rule. This rule is the same...
Read more >
Rules — yamllint 1.28.0 documentation
This page describes the rules and their options. List of rules. braces; brackets; colons; commas; comments; comments-indentation; document-end ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found