Enforce literal syntax for array creation

This commit is contained in:
Javier Villanueva
2016-02-24 11:03:46 +00:00
parent 30c448d1df
commit 2d8409c3e5

View File

@@ -64,7 +64,7 @@ module.exports = {
// http://eslint.org/docs/rules/newline-per-chained-call
'newline-per-chained-call': [0, { 'ignoreChainWithDepth': 3 }],
// disallow use of the Array constructor
'no-array-constructor': 0,
'no-array-constructor': 2,
// disallow use of the continue statement
'no-continue': 0,
// disallow comments inline after code