flatlint 4.0.5 → 4.0.7

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
+ 2026.01.01, v4.0.7
2
+
3
+ feature:
4
+ - 9cb90c6 flatlint: @putout/operator-keyword v4.0.0
5
+
6
+ 2026.01.01, v4.0.6
7
+
8
+ feature:
9
+ - d05b786 flatlint: add-missing-assing: exclude plus
10
+
1
11
  2026.01.01, v4.0.5
2
12
 
3
13
  feature:
@@ -3,6 +3,7 @@ import {
3
3
  isDeclarationKeyword,
4
4
  isKeyword,
5
5
  isPunctuator,
6
+ plus,
6
7
  question,
7
8
  semicolon,
8
9
  } from '#types';
@@ -28,6 +29,9 @@ export const match = () => ({
28
29
  if (isPunctuator(assign, __expr))
29
30
  return false;
30
31
 
32
+ if (isPunctuator(plus, __expr))
33
+ return false;
34
+
31
35
  return !isPunctuator(question, __expr);
32
36
  },
33
37
  });
@@ -156,6 +156,7 @@ export const openRoundBrace = Punctuator('(');
156
156
  export const or = Punctuator('||');
157
157
  export const binaryOr = Punctuator('|');
158
158
  export const spread = Punctuator('...');
159
+ export const plus = Punctuator('+');
159
160
  export const rest = Punctuator('...');
160
161
  export const semicolon = Punctuator(';');
161
162
  export const openCurlyBrace = Punctuator('{');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "4.0.5",
3
+ "version": "4.0.7",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",
@@ -78,7 +78,7 @@
78
78
  "license": "MIT",
79
79
  "dependencies": {
80
80
  "@putout/engine-loader": "^17.0.4",
81
- "@putout/operator-keyword": "^3.0.0",
81
+ "@putout/operator-keyword": "^4.0.0",
82
82
  "js-tokens": "^10.0.0",
83
83
  "obug": "^2.1.1"
84
84
  },