@tim-code/eslint-config 0.5.11 → 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.
@@ -1,7 +1,3 @@
1
- /* eslint-disable no-inline-comments */
2
- /* eslint-disable line-comment-position */
3
- /* global module */
4
-
5
1
  module.exports = {
6
2
  env: {
7
3
  // es6 seems to be needed for Promise
@@ -62,8 +58,10 @@ module.exports = {
62
58
  "multiline-comment-style": ["error", "separate-lines"],
63
59
  // errors need to be logged somehow
64
60
  "no-console": ["error", { allow: ["error"] }],
65
- // if each statement is one line, 15 statements can still be reasonable
66
- "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 }],
67
65
 
68
66
  // unsure
69
67
  "no-labels": "off", // useful to be able to break/continue an outer loop; otherwise have to write more code
@@ -90,5 +88,6 @@ module.exports = {
90
88
  "prefer-named-capture-group": "off", // named capture groups are too new
91
89
  "no-continue": "off", // continue is a useful language feature
92
90
  "no-inline-comments": "off", // not adhered to in this file for example
91
+ "line-comment-position": "off", // relates to above rule
93
92
  },
94
93
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tim-code/eslint-config",
3
- "version": "0.5.11",
3
+ "version": "0.6.1",
4
4
  "description": "",
5
- "main": "",
5
+ "main": ".eslintrc.js",
6
6
  "author": "",
7
7
  "license": "MIT",
8
8
  "dependencies": {