@tim-code/eslint-config 0.6.0 → 0.6.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 +2 -0
- package/package.json +1 -1
package/.eslintrc.js
CHANGED
|
@@ -60,6 +60,8 @@ module.exports = {
|
|
|
60
60
|
"no-console": ["error", { allow: ["error"] }],
|
|
61
61
|
// max 10 statements is way too low
|
|
62
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 }],
|
|
63
65
|
|
|
64
66
|
// unsure
|
|
65
67
|
"no-labels": "off", // useful to be able to break/continue an outer loop; otherwise have to write more code
|