@tim-code/eslint-config 1.2.0 → 1.2.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.
- package/.eslintrc.js +4 -1
- package/package.json +1 -1
package/.eslintrc.js
CHANGED
|
@@ -66,9 +66,10 @@ module.exports = {
|
|
|
66
66
|
// default is 50 lines which is sometimes limiting with Prettier's formatting (parameter destructuring can take up 10 lines for example)
|
|
67
67
|
// adding comments or blanks should not trigger this warning
|
|
68
68
|
// doubled from 75 to allow almost all usages in pluto where it was commonly disabled
|
|
69
|
+
// it is common in Jest tests to trigger this; going to up further to see if that helps, already questionably useful
|
|
69
70
|
"max-lines-per-function": [
|
|
70
71
|
"error",
|
|
71
|
-
{ max:
|
|
72
|
+
{ max: 200, skipBlankLines: true, skipComments: true },
|
|
72
73
|
],
|
|
73
74
|
// allow mix of reassigned and const variables
|
|
74
75
|
"prefer-const": ["error", { destructuring: "all" }],
|
|
@@ -86,6 +87,8 @@ module.exports = {
|
|
|
86
87
|
// when writing such comments during brainstorming, just disable the rule
|
|
87
88
|
// most of the time, want to discourage non-JSDoc block style comments in production
|
|
88
89
|
"multiline-comment-style": ["error", "separate-lines"],
|
|
90
|
+
// allow unused vars before a used var in argument list
|
|
91
|
+
"no-unused-vars": ["error", { args: "after-used" }],
|
|
89
92
|
|
|
90
93
|
// unsure
|
|
91
94
|
"no-labels": "off", // useful to be able to break/continue an outer loop; otherwise have to write more code
|