@tim-code/eslint-config 0.7.3 → 0.7.4

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/.eslintrc.js +3 -1
  2. package/package.json +1 -1
package/.eslintrc.js CHANGED
@@ -63,8 +63,10 @@ module.exports = {
63
63
  "max-lines-per-function": ["error", { max: 75, skipBlankLines: true, skipComments: true }],
64
64
  // allow mix of reassigned and const variables
65
65
  "prefer-const": ["error", { destructuring: "all" }],
66
- // allow range
66
+ // never allow "yoda" conditions except for range
67
67
  yoda: ["error", "never", { exceptRange: true }],
68
+ // unclear why assignment expressions cannot be used
69
+ "prefer-destructuring": ["error", { AssignmentExpression: { array: false } }],
68
70
 
69
71
  // unsure
70
72
  "no-labels": "off", // useful to be able to break/continue an outer loop; otherwise have to write more code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tim-code/eslint-config",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "",
5
5
  "main": ".eslintrc.js",
6
6
  "author": "",