flatlint 1.111.0 → 1.113.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.02.13, v1.113.0
2
+
3
+ feature:
4
+ - 8d7e30d flatlint: add-missing-arrow: exclude private identifier
5
+
6
+ 2025.02.13, v1.112.0
7
+
8
+ feature:
9
+ - ea19d5c flatlint: add-missing-arrow: object
10
+
1
11
  2025.02.13, v1.111.0
2
12
 
3
13
  feature:
@@ -26,4 +26,5 @@ export const match = () => ({
26
26
  });
27
27
  export const replace = () => ({
28
28
  '(__args) {': '(__args) => {',
29
+ ') = ({': ') => ({',
29
30
  });
@@ -13,7 +13,7 @@ export const isIdentifier = (token, newToken) => {
13
13
  return false;
14
14
 
15
15
  const {type} = token;
16
- const is = type === 'IdentifierName';
16
+ const is = type === 'IdentifierName' || type === 'PrivateIdentifier';
17
17
 
18
18
  if (!is)
19
19
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.111.0",
3
+ "version": "1.113.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",