Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow object destructuring via ESLint since we support Node v4 #2776

Merged
merged 1 commit into from Aug 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion .eslintrc
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
@@ -1,5 +1,7 @@
'use strict';

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

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

const ruleListItems = Object.keys(rules)
Expand Down