flatlint 4.0.4 → 4.0.5

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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.01.01, v4.0.5
2
+
3
+ feature:
4
+ - 14a4a47 flatlint: parser: NoSubstitutionTemplate: lines count
5
+
1
6
  2026.01.01, v4.0.4
2
7
 
3
8
  feature:
@@ -2,6 +2,7 @@ import tokenize from 'js-tokens';
2
2
  import {
3
3
  isMultilineComment,
4
4
  isNewLine,
5
+ isNoSubstitutionTemplate,
5
6
  isStringLiteral,
6
7
  isWhiteSpace,
7
8
  } from '#types';
@@ -67,6 +68,9 @@ function getTokensWithLocation(tokens) {
67
68
  if (isMultilineComment(token))
68
69
  line += token.value.split('\n').length - 1;
69
70
 
71
+ if (isNoSubstitutionTemplate(token))
72
+ line += token.value.split('\n').length - 1;
73
+
70
74
  result.push({
71
75
  ...token,
72
76
  line,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",