@tim-code/eslint-config 0.5.7 → 0.5.11

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.
Files changed (2) hide show
  1. package/index.js +6 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -20,7 +20,7 @@ module.exports = {
20
20
  extends: ["eslint:all", "prettier", "plugin:import/recommended"],
21
21
  overrides: [
22
22
  {
23
- files: ["**/*.test.*"],
23
+ files: ["**/*.test.*", "**/test/**"],
24
24
  env: {
25
25
  jest: true,
26
26
  },
@@ -65,6 +65,9 @@ module.exports = {
65
65
  // if each statement is one line, 15 statements can still be reasonable
66
66
  "max-statements": ["error", 15],
67
67
 
68
+ // unsure
69
+ "no-labels": "off", // useful to be able to break/continue an outer loop; otherwise have to write more code
70
+
68
71
  // rule is too idealistic
69
72
  camelcase: "off", // useful to allow non-camelcase for compatibility like destructuring JSON
70
73
  "sort-keys": "off", // too burdensome; doesn't affect order of destructured properties i.e. ({b, a}) => ({a, b}) would be fine
@@ -85,5 +88,7 @@ module.exports = {
85
88
  "no-undefined": "off", // actually undefined should be used over null
86
89
  "capitalized-comments": "off", // comments are not always sentences
87
90
  "prefer-named-capture-group": "off", // named capture groups are too new
91
+ "no-continue": "off", // continue is a useful language feature
92
+ "no-inline-comments": "off", // not adhered to in this file for example
88
93
  },
89
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tim-code/eslint-config",
3
- "version": "0.5.7",
3
+ "version": "0.5.11",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "author": "",