diff --git a/.eslintrc b/.eslintrc index 344b24f4ab..0f29493fbe 100644 --- a/.eslintrc +++ b/.eslintrc @@ -33,7 +33,10 @@ "no-plusplus": 1, "no-param-reassign": 1, "no-mixed-operators": 1, - "no-restricted-syntax": 1, + "no-restricted-syntax": [2, { + "selector": "ObjectPattern", + "message": "Object destructuring is not compatible with Node v4" + }], "strict": [2, "safe"], "valid-jsdoc": [2, { "requireReturn": false, diff --git a/markdown.config.js b/markdown.config.js index d1bc849983..ea7a04fa45 100644 --- a/markdown.config.js +++ b/markdown.config.js @@ -1,5 +1,7 @@ 'use strict'; +/* eslint-disable no-restricted-syntax */ + const {rules} = require('./index'); const ruleListItems = Object.keys(rules)