From a1ca49b34c4e83ac70a583c1f64143f520d771f6 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 17 Oct 2016 08:04:38 +0200 Subject: [PATCH] Add `ForOfStatement` to `no-restricted-syntax` Fixes #1122 --- packages/eslint-config-airbnb-base/rules/style.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-airbnb-base/rules/style.js b/packages/eslint-config-airbnb-base/rules/style.js index 5d130665..53c76aef 100644 --- a/packages/eslint-config-airbnb-base/rules/style.js +++ b/packages/eslint-config-airbnb-base/rules/style.js @@ -219,6 +219,7 @@ module.exports = { 'no-restricted-syntax': [ 'error', 'ForInStatement', + 'ForOfStatement', 'LabeledStatement', 'WithStatement', ],