@saasmakers/eslint 1.0.23 → 1.0.24
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.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -809,8 +809,8 @@ const templateTagLength = "<template>".length;
|
|
|
809
809
|
const propsPrefixRegex = /\$?props\.(\w+)/g;
|
|
810
810
|
const trueAttributeRegex = /(?<![\w-]):?(?!aria-)([a-z0-9-]+)="true"/gi;
|
|
811
811
|
const eventHandlerRegex = /(?:@|v-on:)[^\s="'<>/]+\s*=\s*"([^"]*)"/g;
|
|
812
|
-
const bareIdentifierRegex = /^[
|
|
813
|
-
const singleCallRegex = /^([
|
|
812
|
+
const bareIdentifierRegex = /^[a-z_$][\w$]*$/i;
|
|
813
|
+
const singleCallRegex = /^([a-z_$][\w$]*)\s*\(.*\)$/is;
|
|
814
814
|
const onPrefixRegex = /^on[A-Z]/;
|
|
815
815
|
const exemptCallees = /* @__PURE__ */ new Set(["$emit", "emit"]);
|
|
816
816
|
const dollarTPatterns = [
|
package/dist/index.mjs
CHANGED
|
@@ -807,8 +807,8 @@ const templateTagLength = "<template>".length;
|
|
|
807
807
|
const propsPrefixRegex = /\$?props\.(\w+)/g;
|
|
808
808
|
const trueAttributeRegex = /(?<![\w-]):?(?!aria-)([a-z0-9-]+)="true"/gi;
|
|
809
809
|
const eventHandlerRegex = /(?:@|v-on:)[^\s="'<>/]+\s*=\s*"([^"]*)"/g;
|
|
810
|
-
const bareIdentifierRegex = /^[
|
|
811
|
-
const singleCallRegex = /^([
|
|
810
|
+
const bareIdentifierRegex = /^[a-z_$][\w$]*$/i;
|
|
811
|
+
const singleCallRegex = /^([a-z_$][\w$]*)\s*\(.*\)$/is;
|
|
812
812
|
const onPrefixRegex = /^on[A-Z]/;
|
|
813
813
|
const exemptCallees = /* @__PURE__ */ new Set(["$emit", "emit"]);
|
|
814
814
|
const dollarTPatterns = [
|