Skip to content

Commit ee8f771

Browse files
captbaritoneljharb
authored andcommitted
[meta] Disallow object destructuring via ESLint since we support Node v4
1 parent 2588c4d commit ee8f771

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
"no-plusplus": 1,
3434
"no-param-reassign": 1,
3535
"no-mixed-operators": 1,
36-
"no-restricted-syntax": 1,
36+
"no-restricted-syntax": [2, {
37+
"selector": "ObjectPattern",
38+
"message": "Object destructuring is not compatible with Node v4"
39+
}],
3740
"strict": [2, "safe"],
3841
"valid-jsdoc": [2, {
3942
"requireReturn": false,

markdown.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
/* eslint-disable no-restricted-syntax */
4+
35
const {rules} = require('./index');
46

57
const ruleListItems = Object.keys(rules)

0 commit comments

Comments
 (0)