This repository was archived by the owner on Mar 7, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1616module . exports = {
1717
1818 rules : {
19+ // enforce line breaks after opening and before closing array brackets
20+ // Requires consistent usage of linebreaks for each pair of brackets. It reports an error if one
21+ // bracket in the pair has a linebreak inside it and the other bracket does not.
22+ 'array-bracket-newline' : [ 'warn' , 'consistent' ] ,
23+
1924 // Require braces in arrow function body
2025 // This rule can enforce the use of braces around arrow function body.
2126 'arrow-body-style' : [ 'warn' , 'as-needed' ] ,
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ module.exports = {
1414 // Unused, too restrictive
1515 'array-element-newline' : 0 ,
1616
17- // enforce line breaks after opening and before closing array brackets
18- // Unused, does not enforce newlines after each array element, resulting in weird-looking code
19- 'array-bracket-newline' : 0 ,
20-
2117 // Treat var as Block Scoped
2218 // Unused in favour of `no-var` rule. Front-end could have some interest in this rule.
2319 'block-scoped-var' : 0 ,
You can’t perform that action at this time.
0 commit comments