Skip to content

Commit

Permalink
[meta] Disallow object destructuring via ESLint since we support Node v4
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone authored and ljharb committed Aug 29, 2020
1 parent 2588c4d commit ee8f771
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions markdown.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

/* eslint-disable no-restricted-syntax */

const {rules} = require('./index');

const ruleListItems = Object.keys(rules)
Expand Down

0 comments on commit ee8f771

Please sign in to comment.