eslint-plugin-lube 0.3.0 → 0.3.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.
package/package.json CHANGED
@@ -22,5 +22,5 @@
22
22
  "test": "mocha"
23
23
  },
24
24
  "type": "commonjs",
25
- "version": "0.3.0"
25
+ "version": "0.3.1"
26
26
  }
@@ -32,7 +32,7 @@ module.exports = {
32
32
  const text_indexes = get_indexed_array(text_length)
33
33
  const left_space_regex = /\s+$/
34
34
  const right_space_regex = /^\s+/
35
- const type_regex = /(?<=(?:^|.*\s*)@type\s*\{).+?(?=\}.*?$)/
35
+ const type_regex = /(?<=(?:^|.*\s*)@type\s*\{).+(?=\}.*?$)/
36
36
  /** @type {import("../private").Comment[]} */
37
37
  const comments = []
38
38
  for (const comment of /** @type {import("../private").Comment[]} */(source_code.getAllComments().reverse())/**/) {
@@ -9,6 +9,9 @@ exports.module = (valid, invalid) => {
9
9
  a
10
10
  )`
11
11
  },
12
+ {
13
+ code: "var v = /** @type {{}} */(a)/**/"
14
+ },
12
15
  {
13
16
  code: "var v = /** @type {A} */(/** @type {B} */(/** @type {C} */(a)/**/)/**/)/**/"
14
17
  },