Skip to content

Commit 8f78e1f

Browse files
1peteljharb
authored andcommitted
[tests] re-enable eslint rule prefer-destructuring internally
1 parent 5a32c33 commit 8f78e1f

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

packages/eslint-config-airbnb-base/.eslintrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44
// disable requiring trailing commas because it might be nice to revert to
55
// being JSON at some point, and I don't want to make big changes now.
66
"comma-dangle": 0,
7-
// we support node 4
8-
"prefer-destructuring": 0,
97
},
108
}

packages/eslint-config-airbnb-base/whitespace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const assign = require('object.assign');
22
const entries = require('object.entries');
3-
const CLIEngine = require('eslint').CLIEngine;
3+
const { CLIEngine } = require('eslint');
44

55
const baseConfig = require('.');
66

packages/eslint-config-airbnb/.eslintrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44
// disable requiring trailing commas because it might be nice to revert to
55
// being JSON at some point, and I don't want to make big changes now.
66
"comma-dangle": 0,
7-
// we support node 4
8-
"prefer-destructuring": 0,
97
},
108
}

packages/eslint-config-airbnb/whitespace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const assign = require('object.assign');
22
const entries = require('object.entries');
3-
const CLIEngine = require('eslint').CLIEngine;
3+
const { CLIEngine } = require('eslint');
44

55
const baseConfig = require('.');
66

0 commit comments

Comments
 (0)