flatlint 1.45.3 → 1.46.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.
package/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2025.01.14, v1.46.0
2
+
3
+ feature:
4
+ - c7159dc path: isNextPunctuator: simplify
5
+
1
6
  2025.01.14, v1.45.3
2
7
 
3
8
  feature:
@@ -138,11 +138,6 @@ const createIsNextPunctuator = ({tokens, end}) => (punctuators) => {
138
138
  if (!current)
139
139
  return false;
140
140
 
141
- for (const punctuator of maybeArray(punctuators)) {
142
- if (isPunctuator(current, punctuator))
143
- return true;
144
- }
145
-
146
141
  return isPunctuator(current, punctuators);
147
142
  };
148
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.45.3",
3
+ "version": "1.46.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",