flatlint 1.45.3 → 1.47.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,13 @@
1
+ 2025.01.14, v1.47.0
2
+
3
+ feature:
4
+ - 5ebcad4 flatlint: remove-invalid-character: ·
5
+
6
+ 2025.01.14, v1.46.0
7
+
8
+ feature:
9
+ - c7159dc path: isNextPunctuator: simplify
10
+
1
11
  2025.01.14, v1.45.3
2
12
 
3
13
  feature:
package/README.md CHANGED
@@ -150,9 +150,9 @@ function x() {
150
150
 
151
151
  ```diff
152
152
  -const {¬
153
- - is,¬
154
- - isArgsStr
155
- - isTypeParamsStr,¬
153
+ -····is,¬
154
+ -····sArgsStr
155
+ -····isTypeParamsStr,¬
156
156
  -} = require('./is');¬
157
157
  +const {
158
158
  + is,
@@ -1,6 +1,8 @@
1
1
  export const report = () => 'Remove invalid character';
2
2
 
3
3
  export const replace = () => ({
4
+ '·': ' ',
4
5
  '¬': '',
5
6
  ';¬': ';',
7
+ '}¬': '}',
6
8
  });
@@ -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.47.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",