flatlint 3.1.1 → 3.1.2

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,11 @@
1
+ 2025.08.05, v3.1.2
2
+
3
+ fix:
4
+ - d052195 flatlint: add-missing-comma: MemberExpression: exclude
5
+
6
+ feature:
7
+ - 03fa29b flatlint: eslint-plugin-putout v28.0.4
8
+
1
9
  2025.06.02, v3.1.1
2
10
 
3
11
  feature:
@@ -24,6 +24,9 @@ export const isTemplateHead = (a) => a?.type === 'TemplateHead';
24
24
  export const isTemplateTail = (a) => a?.type === 'TemplateTail';
25
25
  export const isWhiteSpace = ({type}) => type === 'WhiteSpace';
26
26
  export const isIdentifier = (token, newToken) => {
27
+ if (!token)
28
+ return false;
29
+
27
30
  const {type} = token;
28
31
  const is = type === 'IdentifierName' || type === 'PrivateIdentifier';
29
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",
@@ -87,7 +87,7 @@
87
87
  "@putout/test": "^13.0.0",
88
88
  "c8": "^10.1.2",
89
89
  "eslint": "^9.7.0",
90
- "eslint-plugin-putout": "^27.1.0",
90
+ "eslint-plugin-putout": "^28.0.4",
91
91
  "madrun": "^11.0.0",
92
92
  "mock-require": "^3.0.3",
93
93
  "montag": "^1.0.0",