@tim-code/eslint-config 0.7.3 → 0.7.5

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 +4 -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
@@ -79,6 +81,7 @@ module.exports = {
79
81
  "no-underscore-dangle": "off", // difficult to come up with other names for named default parameters
80
82
  "max-statements": "off", // max 10 statements is way too low; unclear why number of statements is a good measurement
81
83
  "class-methods-use-this": "off", // allow a static method to be called like an instance method
84
+ "arrow-body-style": "off", // does not allow braces to be used with a multi-line fat arrow expression
82
85
 
83
86
  // rule conflicts with another tool
84
87
  "one-var": "off", // with Prettier, comma appears on the same line as declaration, making code less readable
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.5",
4
4
  "description": "",
5
5
  "main": ".eslintrc.js",
6
6
  "author": "",