@tim-code/eslint-config 0.6.5 → 0.7.1

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 -2
  2. package/package.json +1 -1
package/.eslintrc.js CHANGED
@@ -59,7 +59,7 @@ module.exports = {
59
59
  // errors need to be logged somehow
60
60
  "no-console": ["error", { allow: ["error"] }],
61
61
  // default is 50 lines which is fine but adding comments or blanks should not trigger this warning
62
- "max-lines-per-function": ["error", { max: 50, skipBlankLines: true, skipComments: true }],
62
+ "max-lines-per-function": ["error", { max: 75, skipBlankLines: true, skipComments: true }],
63
63
  // allow mix of reassigned and const variables
64
64
  "prefer-const": ["error", { destructuring: "all" }],
65
65
 
@@ -67,7 +67,7 @@ module.exports = {
67
67
  "no-labels": "off", // useful to be able to break/continue an outer loop; otherwise have to write more code
68
68
 
69
69
  // rule is too idealistic
70
- camelcase: "off", // useful to allow non-camelcase for compatibility like destructuring JSON
70
+ camelcase: "off", // useful to allow non-camel case for compatibility like destructuring JSON
71
71
  "sort-keys": "off", // too burdensome; doesn't affect order of destructured properties i.e. ({b, a}) => ({a, b}) would be fine
72
72
  "no-param-reassign": "off", // a common pattern is to coerce parameters; noisy to rename parameters slightly differently
73
73
  "no-magic-numbers": "off", // does not allow 1, 2, -1; also sometimes noisy to name every constant (for example in time calculations)
@@ -92,5 +92,7 @@ module.exports = {
92
92
  "no-inline-comments": "off", // not adhered to in this file for example
93
93
  "line-comment-position": "off", // relates to above rule
94
94
  "no-loop-func": "off", // this is only a concern with var declarations
95
+ "max-classes-per-file": "off", // one class per file discourages small classes
96
+ "lines-between-class-members": "off", // discourages smaller classes
95
97
  },
96
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tim-code/eslint-config",
3
- "version": "0.6.5",
3
+ "version": "0.7.1",
4
4
  "description": "",
5
5
  "main": ".eslintrc.js",
6
6
  "author": "",