@tim-code/eslint-config 0.5.14 → 0.6.3

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 +7 -2
  2. package/package.json +1 -1
package/.eslintrc.js CHANGED
@@ -58,8 +58,12 @@ module.exports = {
58
58
  "multiline-comment-style": ["error", "separate-lines"],
59
59
  // errors need to be logged somehow
60
60
  "no-console": ["error", { allow: ["error"] }],
61
- // if each statement is one line, 15 statements can still be reasonable
62
- "max-statements": ["error", 15],
61
+ // max 10 statements is way too low
62
+ "max-statements": ["error", 20],
63
+ // default is 50 lines which is fine but adding comments or blanks should not trigger this warning
64
+ "max-lines-per-function": ["error", { max: 50, skipBlankLines: true, skipComments: true }],
65
+ // allow mix of reassigned and const variables
66
+ "prefer-const": ["error", { destructuring: "all" }],
63
67
 
64
68
  // unsure
65
69
  "no-labels": "off", // useful to be able to break/continue an outer loop; otherwise have to write more code
@@ -87,5 +91,6 @@ module.exports = {
87
91
  "no-continue": "off", // continue is a useful language feature
88
92
  "no-inline-comments": "off", // not adhered to in this file for example
89
93
  "line-comment-position": "off", // relates to above rule
94
+ "no-loop-func": "off", // this is only a concern with var declarations
90
95
  },
91
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tim-code/eslint-config",
3
- "version": "0.5.14",
3
+ "version": "0.6.3",
4
4
  "description": "",
5
5
  "main": ".eslintrc.js",
6
6
  "author": "",