eslint-config-isaacscript 1.0.84 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/base.js +13 -2
  2. package/package.json +1 -1
package/base.js CHANGED
@@ -375,8 +375,19 @@ module.exports = {
375
375
  * https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js
376
376
  *
377
377
  * - Array destructuring can result in non-intuitive code.
378
- * - Object destructuring is disgustingly verbose in TypeScript.
379
378
  */
380
- "prefer-destructuring": "off",
379
+ "prefer-destructuring": [
380
+ "warn",
381
+ {
382
+ VariableDeclarator: {
383
+ array: false,
384
+ object: true,
385
+ },
386
+ AssignmentExpression: {
387
+ array: false,
388
+ object: false,
389
+ },
390
+ },
391
+ ],
381
392
  },
382
393
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "1.0.84",
3
+ "version": "1.1.0",
4
4
  "description": "A sharable ESLint config for TypeScript and IsaacScript projects.",
5
5
  "repository": {
6
6
  "type": "git",