eslint-plugin-harlanzw 0.2.5 → 0.2.6
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/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TextSourceCodeBase, ConfigCommentParser, Directive, VisitNodeStep } from '@eslint/plugin-kit';
|
|
2
2
|
import { AST_NODE_TYPES } from '@typescript-eslint/utils';
|
|
3
3
|
|
|
4
|
-
const version = "0.2.
|
|
4
|
+
const version = "0.2.6";
|
|
5
5
|
|
|
6
6
|
const STRENGTH_PATTERNS = {
|
|
7
7
|
strong: ["never", "must", "always", "under no circumstances", "absolutely", "required", "mandatory", "forbidden", "prohibited"],
|
|
@@ -3021,6 +3021,8 @@ const vueNoFauxComposables = createEslintRule({
|
|
|
3021
3021
|
return expr.properties.some((prop) => prop.type === "Property" && hasReactivityInExpression(prop.value));
|
|
3022
3022
|
case "ArrayExpression":
|
|
3023
3023
|
return expr.elements.some((elem) => hasReactivityInExpression(elem));
|
|
3024
|
+
case "AwaitExpression":
|
|
3025
|
+
return hasReactivityInExpression(expr.argument);
|
|
3024
3026
|
default:
|
|
3025
3027
|
return false;
|
|
3026
3028
|
}
|