flatlint 3.1.1 → 3.2.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,16 @@
1
+ 2025.08.05, v3.2.0
2
+
3
+ feature:
4
+ - c8e977c flatlint: add-missing-squire-brace: MemberExpression: add support
5
+
6
+ 2025.08.05, v3.1.2
7
+
8
+ fix:
9
+ - d052195 flatlint: add-missing-comma: MemberExpression: exclude
10
+
11
+ feature:
12
+ - 03fa29b flatlint: eslint-plugin-putout v28.0.4
13
+
1
14
  2025.06.02, v3.1.1
2
15
 
3
16
  feature:
@@ -1,5 +1,11 @@
1
1
  export const report = () => 'Add missing square brace';
2
2
 
3
+ export const match = () => ({
4
+ '["__a"': (vars, path) => {
5
+ return !path.isNext();
6
+ },
7
+ });
3
8
  export const replace = () => ({
4
9
  '[__array;': '[__array];',
10
+ '["__a"': '["__a"];',
5
11
  });
@@ -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.2.0",
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",