From 2d8409c3e549f082f30c37d62d64304289380f52 Mon Sep 17 00:00:00 2001 From: Javier Villanueva Date: Wed, 24 Feb 2016 11:03:46 +0000 Subject: [PATCH] Enforce literal syntax for array creation --- packages/eslint-config-airbnb/rules/style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb/rules/style.js b/packages/eslint-config-airbnb/rules/style.js index b9b0e23f..6e127816 100644 --- a/packages/eslint-config-airbnb/rules/style.js +++ b/packages/eslint-config-airbnb/rules/style.js @@ -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