@tim-code/eslint-config 0.5.8 → 0.5.12

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