@tim-code/eslint-config 0.5.10 → 0.6.0

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,8 @@ 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],
67
63
 
68
64
  // unsure
69
65
  "no-labels": "off", // useful to be able to break/continue an outer loop; otherwise have to write more code
@@ -89,5 +85,7 @@ module.exports = {
89
85
  "capitalized-comments": "off", // comments are not always sentences
90
86
  "prefer-named-capture-group": "off", // named capture groups are too new
91
87
  "no-continue": "off", // continue is a useful language feature
88
+ "no-inline-comments": "off", // not adhered to in this file for example
89
+ "line-comment-position": "off", // relates to above rule
92
90
  },
93
91
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tim-code/eslint-config",
3
- "version": "0.5.10",
3
+ "version": "0.6.0",
4
4
  "description": "",
5
- "main": "",
5
+ "main": ".eslintrc.js",
6
6
  "author": "",
7
7
  "license": "MIT",
8
8
  "dependencies": {