@tim-code/eslint-config 0.5.12 → 0.6.2

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