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 16
16
module . exports = {
17
17
18
18
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
+
19
24
// Require braces in arrow function body
20
25
// This rule can enforce the use of braces around arrow function body.
21
26
'arrow-body-style' : [ 'warn' , 'as-needed' ] ,
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ module.exports = {
14
14
// Unused, too restrictive
15
15
'array-element-newline' : 0 ,
16
16
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
-
21
17
// Treat var as Block Scoped
22
18
// Unused in favour of `no-var` rule. Front-end could have some interest in this rule.
23
19
'block-scoped-var' : 0 ,
You can’t perform that action at this time.
0 commit comments