Update: Add "consistent" option to array-bracket-newline
See original GitHub issueobject-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:
- Created 6 years ago
- Reactions:9
- Comments:7 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just added my 👍. This is now accepted!
https://github.com/eslint/eslint/pull/9206